https://github.com/aifia105/algo-tracker-api
LeetCode tracker api
https://github.com/aifia105/algo-tracker-api
bcrypt cors dotenv expressjs jwt mongodb mongoose typescript
Last synced: about 2 months ago
JSON representation
LeetCode tracker api
- Host: GitHub
- URL: https://github.com/aifia105/algo-tracker-api
- Owner: aifia105
- Created: 2025-06-28T21:16:49.000Z (12 months ago)
- Default Branch: main
- Last Pushed: 2025-06-29T00:12:19.000Z (12 months ago)
- Last Synced: 2025-06-29T01:28:56.895Z (12 months ago)
- Topics: bcrypt, cors, dotenv, expressjs, jwt, mongodb, mongoose, typescript
- Language: TypeScript
- Homepage:
- Size: 22.5 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 🧠 Algo Tracker API
The backend service for the Algo Tracker app — a full-stack LeetCode progress and problem management tool for devs who don't just grind... they build.
## 🧱 Stack
- **Node.js**
- **Express**
- **MongoDB + Mongoose**
- **JWT Authentication**
- **bcrypt (Password hashing)**
- **CORS / Helmet / Morgan (Security & Logging)**
## 🔐 Auth Flow
- Register with `username`, `email`, and `password`
- Login returns JWT (stored in localStorage/cookie by frontend)
- Protected routes validate tokens via middleware
## 🗃️ Folder Structure
📦algo-tracker-api
┣ 📂controllers
┣ 📂dtos
┣ 📂enums
┣ 📂middleware
┣ 📂models
┣ 📂services
┣ 📂utils
┣ 📄index.ts
┗ 📄.env (ignored)
```bash
git clone https://github.com/yourusername/algo-tracker-api
cd algo-tracker-api
npm install
npm run dev
```
Create a `.env` file:
```bash
PORT=5000
MONGO_URI=your_mongo_connection_string
JWT_SECRET=your_secret
```
## 📜 License
MIT