添加 eggjs web-server,初步支持多宝短信

This commit is contained in:
liangtongchuan
2020-08-15 22:42:04 +08:00
parent 8ce0dc040f
commit 0458817b51
29 changed files with 11337 additions and 0 deletions

33
web-server/README.md Normal file
View File

@@ -0,0 +1,33 @@
# 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+