Basic template for starting a new expressjs json API server.
.
├── index.js
├── LICENSE
├── middleware.js
├── package.json
├── README.md
├── routes
│ └── index.js
└── test
└── api.test.js
- Supertest
- ESLint
- Mocha
- Nodemon
- JWT with bcrypt
- Database
- Schema
- Input Validation
- Routes for signup, auth etc
- Swagger json api documentation
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