ngmikeng / mn-express-typescript-rest-starter

Simple starter project for build rest api, learning, practice Typescript, Nodejs & Expressjs.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Express Typescript Rest API Starter

Dependencies

  • Authentication: jsonwebtoken, express-jwt.
  • Validation: express-validation, joi.
  • Log: winston.
  • ODM: mongoose.
  • Promise: bluebird.
  • Unit test: mocha, supertest.
  • Others: dotenv, cors, helmet...

API Info

Get started

  • 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

TODO

  • Handle mongo validation error, index error.
  • ORM: SequelizeJS.
  • Write definitely type for some libraries which don't have.
  • Testing more.

License

MIT

About

Simple starter project for build rest api, learning, practice Typescript, Nodejs & Expressjs.

License:MIT License


Languages

Language:TypeScript 100.0%