Contains the necessary foundation to have a RESTful API service ready to go. Complete with token based user authentication.
[Expresss, Mongoose, MongoDB]
Install required dependencies:
git clone https://github.com/luoto/api-starter
cd api-starter
npm init
Start the API server using:
npm start
Start adding in your own routes, models, and controllers.
.
├── src
│ ├── api
│ │ ├── config
│ │ ├── controllers
│ │ ├── db
│ │ ├── middleware
│ │ ├── models
│ │ ├── router
│ │ ├── utils
│ │ └── server.js
│ └── index.js
├── tests
│ └── api
├── package.json
└── README.md
Run tests:
npm test
- Token refresh
- Token blacklist
- Google+ OAuth support
- Facebook OAuth support
- ES2015
- Currently, the way to log out users is to delete the JWT on the client side or when the token expires. Token refreshes and blacklists will be used to remedy this problem in future releases.
- Submit an issue :)
...
MIT