https://github.com/shadialtarsha/node-restful-api
A simple example for RESTful API powered with JWT.
https://github.com/shadialtarsha/node-restful-api
bcrypt expressjs jwt mocha mongodb mongoose nodejs supertest
Last synced: 3 months ago
JSON representation
A simple example for RESTful API powered with JWT.
- Host: GitHub
- URL: https://github.com/shadialtarsha/node-restful-api
- Owner: shadialtarsha
- Created: 2018-02-16T11:31:37.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-03-28T23:38:58.000Z (over 8 years ago)
- Last Synced: 2026-01-03T14:31:39.962Z (6 months ago)
- Topics: bcrypt, expressjs, jwt, mocha, mongodb, mongoose, nodejs, supertest
- Language: JavaScript
- Homepage:
- Size: 76.2 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# NodeJS RESTful API
A simple example for RESTful API powered with JWT.
# Requirements
You need to add a config.json file to config folder. For example:
```JSON
{
"development": {
"PORT": 3000,
"MONGODB_URI": "mongodb://localhost:27017/node-restful-api",
"JWT_SECRET": "123abcefg1232222"
},
"test": {
"PORT": 3000,
"MONGODB_URI": "mongodb://localhost:27017/node-restful-api-test",
"JWT_SECRET": "123abcefg1232222"
}
}
```
# Technologies
* NodeJs
* ExpressJs
* MongoDB
* Mongoose
* JWT - JSON web token
* bcryptjs - for password encryption
* validator
* lodash
* Mocha - for testing
* expect - assertions library
* supertest - for ExpressJs testing