Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/realgeoffrey/scaffolding-node
Node.js的脚手架
https://github.com/realgeoffrey/scaffolding-node
scaffolding
Last synced: 18 days ago
JSON representation
Node.js的脚手架
- Host: GitHub
- URL: https://github.com/realgeoffrey/scaffolding-node
- Owner: realgeoffrey
- License: mit
- Created: 2021-02-06T14:49:49.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2024-04-26T13:46:41.000Z (7 months ago)
- Last Synced: 2024-04-26T14:52:45.871Z (7 months ago)
- Topics: scaffolding
- Language: TypeScript
- Homepage:
- Size: 411 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# scaffolding-node
>scaffolding of Node.js: TypeScript+pm2+--inspect+ESLint+Prettier+simple-git-hooks+lint-staged
纯后台服务。
## 本地调试
```shell
# 启动
npm run dev# 关闭
npm run dev:stop
```## 生产环境
1. 使用pm2```shell
# 启动
npm run start:pm2# 关闭
npm run stop:pm2# 重启
npm run restart:pm2
```
2. 直接Node.js前台启动```shell
npm run start
```- 生成docker镜像,启动容器
```shell
# 生成docker镜像
docker build -t scaffolding-node .# 启动容器
docker run -p=8080:8080 -d scaffolding-node
```