NodeJS, current LTS or higher
MongoDB
Redis
$ git clone https://github.com/Gordeev1/chat_api
$ cd chat_api
$ npm i
$ npm i -g nodemon
$ npm run start-dev
Now documentation available at localhost:8000/documentation
- Prepare your tls certificate
- Define environment variables
// pm2.config
"env": {
"TLS_PASSWORD": "",
"GCM_KEY": "",
"MONGO_USER": "",
"MONGO_PASSWORD": "",
"REDIS_PASSWORD": "",
"AUTH_KEY": "",
"HOST": "",
"DOMAIN": ""
}
- And start app with
$ npm start
- Add nginx for serve static files