Todo application using NodeJS. Includes features like
- Login
- Logout
- Authentication using JWT Token
- Password hashing using BCryptJs
- Todo APIs protected with authentication
- Test coverage using Mocha
- Clone this repository
- Create a sample configuration file config.json under 'server/config' folder.
- Here is the sample configuration file
{
"test" : {
"PORT" : 3000,
"MONGODB_URI": "mongodb://localhost:27017/TodoAppTest",
"JWT_SECRET": "mysecretjwt"
},
"development": {
"PORT" : 3000,
"MONGODB_URI": "mongodb://localhost:27017/TodoApp",
"JWT_SECRET": "mysecretjwt"
}
}
- Install and run mongodb instance locally.
- Install Studio-3D to view MongoDb content.
- Install POSTMAN to test APIs locally.
npm install
node server/server.js
npm run test
- Rohit Nanania - GitHub
This project is licensed under the MIT License - see the LICENSE.md file for details
- Hat tip to anyone whose code was used
- Inspiration
- etc