https://github.com/realgeoffrey/scaffolding-node
Node.js的脚手架
https://github.com/realgeoffrey/scaffolding-node
scaffolding
Last synced: 23 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 5 years ago)
- Default Branch: master
- Last Pushed: 2025-08-01T03:41:41.000Z (4 months ago)
- Last Synced: 2025-08-01T05:31:12.162Z (4 months ago)
- Topics: scaffolding
- Language: TypeScript
- Homepage:
- Size: 414 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# scaffolding-node
[](https://www.npmjs.com/package/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
```