/egg-server-api

Node API written by Egg.js and Typescript.

Primary LanguageTypeScript

Egg-server-api

Egg server API written by Egg.js, MySQL, Redis, TypeScript.

QuickStart

Development

$ yarn install
$ yarn dev
$ open http://localhost:7001/

Don't tsc compile at development mode, if you had run tsc then you need to yarn clean before yarn dev.

Deploy

$ yarn tsc
$ yarn start

Npm Scripts

  • Use yarn lint to check code style
  • Use yarn test to run unit test
  • Use yarn clean to clean compiled js at development mode once

Requirement

  • Node.js 8.x
  • Typescript 3.0+