- 实现postgres连接
- 实现kafka连接
- 通过egg的load模块,增加了一个dao层,来操作数据库。
- 加入jwt认证中间件
Hacker News showcase using typescript && egg
$ npm i
$ npm run dev
$ 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
.
$ npm run tsc
$ npm start
- 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
- Node.js 8.x
- Typescript 2.8+