WSBM 唯守书签后端项目。
$ npm install
$ cp .env.example .env
# 快速生成CRUD资源 (REST API / GraphQL / Microservice / WebSockets)
$ nest g resource xxx --no-spec
# 开发
$ npm run start
# 观察模式
$ npm run dev
# 产品模式
$ npm run prod
$ npm run pm2
$ npm run doc
server {
listen 80;
server_name server.weishour.com;
location / {
proxy_pass http://127.0.0.1:3000;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $http_host;
proxy_set_header X-Nginx-Proxy true;
proxy_redirect off;
}
}