-
Install Dependencies:
npm install -
Create .env file: Create a file named .env in the root of your project and add the following variables:
PORT=your_PORT MONGO_URL=your_URL NODE_ENV=development PRIVATE_KEY=your_PRIVATE_KEY -
Import Dummy Data: Run the following command to insert dummy data into the todo and user collections:
npm run data:import
Use a tool like Postman to interact with the API endpoints. Start the server and begin testing your endpoints.
- Run the server:
npm run server
- Insert dummy data:
npm run data:import
- Delete dummy data:
npm run data:destroy