https://github.com/thundersdata-frontend/egg-template
node服务template
https://github.com/thundersdata-frontend/egg-template
Last synced: 11 months ago
JSON representation
node服务template
- Host: GitHub
- URL: https://github.com/thundersdata-frontend/egg-template
- Owner: thundersdata-frontend
- Created: 2021-03-15T06:06:28.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-03-18T02:53:42.000Z (about 5 years ago)
- Last Synced: 2025-03-06T08:20:53.357Z (over 1 year ago)
- Language: TypeScript
- Size: 295 KB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# hackernews-async-ts
[Hacker News](https://news.ycombinator.com/) 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 8.x
- Typescript 2.8+