Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/realgeoffrey/scaffolding-node

Node.js的脚手架
https://github.com/realgeoffrey/scaffolding-node

scaffolding

Last synced: 18 days ago
JSON representation

Node.js的脚手架

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
```