yinjunok / qa-server

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

hackernews-async-ts

Hacker News showcase using typescript && egg

QuickStart

Development

$ npm i
$ npm run dev
$ 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

$ npm run tsc
$ 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+

文档地址 数据库: https://eggjs.org/zh-cn/tutorials/sequelize.html

docker run --name dev-mysql --restart=always -e MYSQL_ROOT_PASSWORD=local_password:127.0.0.1 -p 3306:3306 -d mysql:5 --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci

About


Languages

Language:TypeScript 97.1%Language:JavaScript 2.9%