Back to Egg

Hello Egg.js

tools/create-egg/src/templates/simple-ts/README.md

4.0.10557 B
Original Source

Hello Egg.js

Hello Egg.js showcase using typescript && egg

QuickStart

Development

bash
$ 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

bash
$ 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 20.x
  • Typescript 5.x