Skip to content

fullstackDev0404/to-do-app-backend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TodoPro – Backend

Node.js + Express API for TodoPro (auth, todos, MongoDB).

Commands

Command Description
npm install Install dependencies
npm start or npm run dev Run server (with nodemon for dev)
npm test Placeholder – no tests configured

Setup

  1. Install: npm install
  2. Copy .env.example to .env and set:
    • JWT_SECRET – secret for signing tokens
    • MONGODB_URI – MongoDB connection string (default: mongodb://localhost:27017/todo_app_full)
    • CLIENT_URL – frontend origin for CORS (default: http://localhost:3000)
    • PORT – server port (default: 5000)
  3. Ensure MongoDB is running, then: npm start or npm run dev

Server runs at http://localhost:5000 by default. API base: /api (e.g. /api/auth/login, /api/todos/get).

Tech

  • Node.js, Express 5, Mongoose, JWT, bcryptjs, CORS, dotenv.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors