Skip to content

mantukumar22/todo-backend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This is a full-stack To-Do List application built with React (Vite) for the frontend and Node.js + Express + MongoDB for the backend. The app allows users to add, update, delete, and mark tasks as completed, with data persisted in MongoDB. The app is deployed on Netlify (frontend) and Render (backend).

other informations in frontend repo

Todo Backend API

Tech Stack

  • Node.js
  • Express.js
  • MongoDB
  • Mongoose

Features

  • Create Todo
  • Get All Todos
  • Update Todo
  • Delete Todo
  • Toggle Status

Setup Instructions

  1. Clone the repository
  2. Install dependencies npm install
  3. Create a .env file

PORT=5000 MONGO_URI=your_mongodb_connection_string

  1. Start the server npm run dev

API Endpoints

GET /api/todos
POST /api/todos
PUT /api/todos/:id
DELETE /api/todos/:id

Challenges Faced

  • MongoDB connection handling
  • using MongoDB Atals
  • Proper API structure
  • Error handling

Solution

  • Service-Controller-Route architecture
  • Centralized error middleware

About

Todo-list Application Backend codes

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors