2023-01-29 05:44:19 +00:00
|
|
|
# fast-server-js
|
|
|
|
|
|
|
|
base on midway
|
|
|
|
|
|
|
|
## QuickStart
|
|
|
|
|
2023-01-29 08:06:34 +00:00
|
|
|
> nodejs需要16以上
|
2023-01-29 07:26:58 +00:00
|
|
|
|
2023-01-29 05:44:19 +00:00
|
|
|
<!-- add docs here for user -->
|
|
|
|
|
|
|
|
|
|
|
|
### Development
|
|
|
|
|
|
|
|
```bash
|
|
|
|
$ npm i
|
2023-01-29 07:26:58 +00:00
|
|
|
# 如果遇到sqlite安装失败时
|
|
|
|
# 建议使用cnpm
|
|
|
|
# npm install -g cnpm
|
|
|
|
# cnpm install
|
2023-01-29 05:44:19 +00:00
|
|
|
$ npm run dev
|
|
|
|
$ open http://localhost:7001/
|
|
|
|
```
|
|
|
|
|
|
|
|
### Deploy
|
|
|
|
|
|
|
|
```bash
|
|
|
|
$ npm start
|
|
|
|
```
|
|
|
|
|
|
|
|
### npm scripts
|
|
|
|
|
|
|
|
- Use `npm run lint` to check code style.
|
|
|
|
- Use `npm test` to run unit test.
|
|
|
|
|
|
|
|
|
|
|
|
[midway]: https://midwayjs.org
|
2023-01-29 07:26:58 +00:00
|
|
|
|
|
|
|
see [midway docs][ https://midwayjs.org] for more detail.
|
|
|
|
|
|
|
|
|
|
|
|
|