https://github.com/equk/node-api-template
nodejs api server template using expressjs
https://github.com/equk/node-api-template
Last synced: over 1 year ago
JSON representation
nodejs api server template using expressjs
- Host: GitHub
- URL: https://github.com/equk/node-api-template
- Owner: equk
- License: mit
- Created: 2018-08-20T17:48:31.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-08-20T18:02:24.000Z (almost 8 years ago)
- Last Synced: 2025-01-24T07:11:26.363Z (over 1 year ago)
- Language: JavaScript
- Size: 5.86 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# node-api-template
Basic template for starting a new expressjs json API server.
## File Tree
.
├── index.js
├── LICENSE
├── middleware.js
├── package.json
├── README.md
├── routes
│ └── index.js
└── test
└── api.test.js
## Development Features & Code Testing
* Supertest
* ESLint
* Mocha
* Nodemon
## Expansion
* JWT with bcrypt
* Database
* Schema
* Input Validation
* Routes for signup, auth etc
* Swagger json api documentation
## Additional Packages
Some additional packages which may be of use:
Boom - HTTP-friendly error objects
Passport - Authentication (Supports OAuth & OpenID)
Mongoose - Mongodb with schemas
Sequelize - ORM for Postgres, MySQL, SQLite
Winston - Logging to files (not needed if logging on reverse proxy)
Bcrypt, Jsonwebtoken, Validator, Joi
## Useful Tools
* [jq](https://stedolan.github.io/jq/)
* [JSonview](https://chrome.google.com/webstore/detail/jsonview/chklaanhfefbnpoihckbnefhakgolnmc)
* [httpie](https://httpie.org/)
* [Advanced REST client](https://install.advancedrestclient.com/)
* [Restlet Client](https://chrome.google.com/webstore/detail/restlet-client-rest-api-t/aejoelaoggembcahagimdiliamlcdmfm)
* [Robo 3T (MongoDB GUI)](https://www.robomongo.org/)
* [Postman](https://www.getpostman.com/)