MVC express 的服务,用了如下技术
- express
- mongoose
- babel-cli
- winston and morgan for logging
- Async/Await
Clone the repository and run npm install
git clone https://github.com/adouwt/nodejsAPI.git
npm install
npm start
npm run startdb (如果没有对应文件,新建一个存放数据的文件)
The server will run on port 4000. You can change this by editing core/config/config.dev.js
file.
1.npm run build
2.将项目中dist 文件,上传到服务器
3.npm install
4.pm2 start serve.js
1、sh build.sh
2、解压dist.zip npm install
3、pm2 start serve.js