written by Bilal Amjad in Node.js using Express.js and MongoDB
This backend is being developed as headless nodejs api for Nextjs frontend for creating and managing users, todos and todo items.
npm install
# install dependencies
npm install
# run in production mode
npm start
# run in dev mode
npm run dev
# build docker image
docker build -t todo-backend .
# run docker image in dev mode - always use --build flag to get started with a fresh build
docker compose up --build
# start docker compose watch mode
docker compose watch
You are free to use this code for your own projects, modify it, or publish it anywhere. please give me credit if you use it. (@Thedevelop3r), thanks.