Skip to content

a9ia/shijian-2021-be

Repository files navigation

hackernews-async-ts

Hacker News showcase using typescript && egg

QuickStart

Firstly, change database\config.json and config\config.default.ts databases config. Secondly, run npx sequelize db:migrate and npx sequelize-cli db:seed:all to migrate database.

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+

About

xjtu-shijian-backend-2021

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published