项目作者: zzh8829

项目描述 :
eggjs typescript passport rest api
高级语言: TypeScript
项目地址: git://github.com/zzh8829/egg-typescript-passport-rest-api.git


EGG Typescript Passport Rest API

Overview

  • eggjs and typescript
  • login with username/password + github
  • api protected by JWT
  • postgres db

QuickStart

Development

  1. $ npm i
  2. $ npm run dev
  3. $ open http://localhost:7001/

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

Deploy

  1. $ npm run tsc
  2. $ npm start

Npm Scripts

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

Requirement

  • Node.js 8.x
  • Typescript 2.8+