This is a simple node js backend server as a task using MongoDB.
The user can create todo-list for him and category them sorted by categories
- Authorization system depends on JWT token: (login and register ).
- Authorization has 3 levels: not a user, user and admin.
- RESTful API end points for get/add/delete todo, get/add/delete category and login/register user.
- Express
- mongoose MongoDB object modeling tool
- jsonwebtoken: An implementation of JSON Web Tokens JWT.
- Babel because I used ES6 in the app.
- For testing: Mocha - Chai - chai-http
- nodemon restarting the node application when file changes.
├── build
├── src
│ ├── api
| | ├── category
│ │ │ ├── category.ctrl.js
│ │ │ ├── category.model.js
│ │ │ └── index.js
│ │ ├── todo
│ │ │ ├── todo.ctrl.js
│ │ │ ├── todo.model.js
│ │ │ └── index.js
│ │ └── user
│ │ │ ├── user.ctrl.js
│ │ │ ├── user.model.js
│ │ │ └── index.js
│ ├── config
│ │ ├── auth.js
│ │ ├── config.js
│ │ ├── express.js
│ │ └── routes.js
│ ├── server.js
│ ├── test
| | ├── category.js
│ │ ├── todo.js
│ │ └── user.js
│
├── .gitignore
├── .babelrc
├── README.md
└── package.json