mirror of
https://github.com/certd/certd.git
synced 2026-04-14 12:30:54 +08:00
42 lines
512 B
Markdown
42 lines
512 B
Markdown
|
|
# fast-server-js
|
||
|
|
|
||
|
|
base on midway
|
||
|
|
|
||
|
|
## QuickStart
|
||
|
|
|
||
|
|
> nodejs需要16以上
|
||
|
|
|
||
|
|
<!-- add docs here for user -->
|
||
|
|
|
||
|
|
|
||
|
|
### Development
|
||
|
|
|
||
|
|
```bash
|
||
|
|
$ npm i
|
||
|
|
# 如果遇到sqlite安装失败时
|
||
|
|
# 建议使用cnpm
|
||
|
|
# npm install -g cnpm
|
||
|
|
# cnpm install
|
||
|
|
$ 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
|
||
|
|
|
||
|
|
see [midway docs][ https://midwayjs.org] for more detail.
|
||
|
|
|
||
|
|
|
||
|
|
|