webpack setup for node.js application written in typescript.Application will start with cluster mode with pm2 monitoring.
- Node.js: v6.0.0
- Typescript:v2.0.8
- Gulp: v3.9.1
- Webpack: v2.5.0
- PM2: v2.4.6
- Express: v4.15.3
- Install global dependencies
npm install -g gulp typings typescript pm2
- Install node modules
npm install
- Install typings packages
typings install
npm start
- List down server status
pm2 list
- Stop all server instances
pm2 stop all
- Restart all server instances
pm2 restart all
For more help use this link