- Simple project starter point for Rest API using Nodejs & Expressjs.
- Starter point for learning and practice Rest API with Typescript, Nodejs & Expressjs.
- Inspired by TypeScript-Node-Starter, express-mongoose-es6-rest-api.
- ES6 Version: https://github.com/ngmikeng/mn-express-rest-starter.
- Authentication:
jsonwebtoken,express-jwt. - Validation:
express-validation,joi. - Log:
winston. - ODM:
mongoose. - Promise:
bluebird. - Unit test:
mocha,supertest. - Others:
dotenv,cors,helmet...
- Swagger API docs: http://localhost:5000/api/v1/api-docs/
- Swagger setup using:
swagger-ui-expressandswagger-jsdoc.
- Typescript >= 2.7.
- Install packages npm
$ npm install - Add file
.env
$ cp .env.sample .env- Build and run
$ npm run start- Watch files & auto build
$ npm run watch- Handle mongo validation error, index error.
- ORM: SequelizeJS.
- Write definitely type for some libraries which don't have.
- Testing more.
MIT