Skip to content

Commit d4b2415

Browse files
committed
feat: Telegram and JWT auth
1 parent dd5fea9 commit d4b2415

9 files changed

Lines changed: 953 additions & 1456 deletions

File tree

backend/.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
**/node_modules
22
.env*
3-
.DS_Store
3+
.DS_Store
4+
.vercel
5+
.env*.local

backend/README.md

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# QueueBot Backend
2+
3+
---
4+
5+
## 🚀 Getting Started
6+
7+
Follow these steps to get your local development environment up and running.
8+
9+
### 1. Environment Configuration
10+
Create a `.env` file in the root directory and add the development credentials:
11+
12+
`BOT_TOKEN=your_development_bot_token`
13+
`JWT_SECRET=your_jwt_secret_here`
14+
15+
### 2. Install Dependencies
16+
Install the required packages using npm:
17+
18+
```bash
19+
npm install
20+
```
21+
22+
### 3. Launch Dev Server
23+
```bash
24+
npm run dev
25+
```
26+
27+
## 📁 API Routing
28+
29+
JWT check is toggled based on directory
30+
31+
| Directory | Access Level | Description |
32+
| :--- | :--- |:----------------------------------------|
33+
| `src/routes/public` | **Unprotected** | Open endpoints like `/auth`. |
34+
| `src/routes/private` | **Authenticated** | Requires a valid JWT to access. |
35+

0 commit comments

Comments
 (0)