https://drive.google.com/file/d/1OrLlUwY1yx6pQF80G-dF_q-QtZTJUqlg/view
git clone cd task-manager-api
npm install
Create .env file:
PORT=5000 JWT_SECRET=supersecretkey
PG_HOST=localhost PG_USER=postgres PG_PASSWORD=yourpassword PG_DATABASE=conversely_db PG_PORT=5432
MONGO_URI=your_mongodb_connection_string
npx nodemon src/app.js
POST /api/auth/register
POST /api/auth/login
GET /api/auth/profile
POST /api/tasks
GET /api/tasks
GET /api/tasks/:id
PATCH /api/tasks/:id
DELETE /api/tasks/:id
Use JWT token in header:
Authorization: Bearer
- PostgreSQL → Users
- MongoDB → Tasks
- JWT → Authentication
- Express → API
- Used PostgreSQL for relational user data
- Used MongoDB for flexible task storage
- JWT for stateless authentication
- Middleware-based security