A powerful REST API for managing your todos, built with Node.js, Express, and MongoDB.
- π JWT Authentication
- π CRUD operations for todos
- π― User-specific todos
- π‘οΈ Input validation with Zod
- π¦ MongoDB with Mongoose
- Node.js (v14 or higher)
- Docker
- npm or yarn
- Clone the repository
git clone https://github.com/OmarJ9/my_todo_api.git
cd my_todo_api- Create a .env file:
PORT=3000
MONGODB_URL=mongodb://root:example@localhost:27017
JWT_ACCESS_TOKEN_SECRET=your_secret- Build mongodb image:
docker-compose up -d
- Install dependencies
npm install- Start the server
npm run dev