- Express
- MongoDB
- Passport
- ESLint
- ES6/7
- ODM mongoose
- Environment variables for configuration
- CORS support
- Authentication using email/password and JWT tokens
- Simple authorization middlewares
You have to install MongoDB. Before running de server make sure that MongoDB is properly running.
$ yarn add <package>
$ yarn # yarn install
$ yarn start
Open browser on localhost:3000
$ yarn start # execute server
$ yarn lint # execute linting
This is a basic API designed with RESTFul principles and best practices in mind.
The different available endpoints are documented here and all private endpoints must have an authorization header with a Bearer token.
The token is issued when an user is registered and when an existing user logs in. The API accepts and always responds with a json body.
- Add missing authentication features (activate users, reset password)
- Add logger to use instead of
console.log
- Add internationalization
- Add automated tests
If you like to contribute, submit a new PR. I will get back to you as soon as possible.
See pull request template here.
Let me know if you found a bug, have some new features to include, etc.
See issue template here.
Licensed under the MIT License, Copyright © 2018 Johan Quiroga.
See LICENSE for more information.