This is a backend API for a todo web-app along with Google OAuth2.0.
git clone https://github.com/sayand0122/todo-backend.git
npm i
To run in test mode use :
npm dev
To run in production mode use :
npm start
All the functionality are tested using POSTMAN application.
- Create database in MongoDB Atlas and copy the connection url
- Create a .env file and put the url in a variable of name "DB_URL"
- Open your web browser and redirect to http://localhost:8000/login
- After you are logged in head to the POSTMAN application
- Create an new request
- In the GET tab type http://localhost:8000/todos/
- And you can perform all the GET, POST, PUT and DELETE operations