Skip to content

MukulParasar/task-manager-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Task Manager API

🎥 Demo Video

https://drive.google.com/file/d/1OrLlUwY1yx6pQF80G-dF_q-QtZTJUqlg/view


🚀 Setup Instructions

1. Clone repo

git clone cd task-manager-api

2. Install dependencies

npm install

3. Setup environment variables

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

4. Run server

npx nodemon src/app.js


📦 API Endpoints

Auth

POST /api/auth/register
POST /api/auth/login
GET /api/auth/profile

Tasks

POST /api/tasks
GET /api/tasks
GET /api/tasks/:id
PATCH /api/tasks/:id
DELETE /api/tasks/:id


🔐 Authentication

Use JWT token in header:

Authorization: Bearer


🧠 Architecture

  • PostgreSQL → Users
  • MongoDB → Tasks
  • JWT → Authentication
  • Express → API

📌 Design Decisions

  • Used PostgreSQL for relational user data
  • Used MongoDB for flexible task storage
  • JWT for stateless authentication
  • Middleware-based security

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors