mirror of https://github.com/certd/certd
42 lines
507 B
Markdown
Executable File
42 lines
507 B
Markdown
Executable File
# 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.
|
|
|
|
|
|
|