项目作者: Easy-Martin

项目描述 :
egg-kafka egg-postgres
高级语言: TypeScript
项目地址: git://github.com/Easy-Martin/egg-notes.git
创建时间: 2018-06-19T03:03:30Z
项目社区:https://github.com/Easy-Martin/egg-notes

开源协议:

下载


egg-notes

  • 实现postgres连接
  • 实现kafka连接
  • 通过egg的load模块,增加了一个dao层,来操作数据库。
  • 加入jwt认证中间件

hackernews-async-ts

Hacker News showcase using typescript && egg

QuickStart

Development

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

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+