API for Everhoof Instant Messaging system
- Node 10
Clone the repo and install the dependencies.
git clone --single-branch -b dist https://github.com/everhoof/im_everhoof_api.git
cd im_everhoof_api
yarn --frozen-lockfile --prod
Update configs.
cp ormconfig.prod.js ormconfig.js
nano ormconfig.js
cp .env.example .env
nano .env
Run migrations.
yarn orm migrations:run
yarn seed:run
Use process manager to start the application.
pm2 start yarn --name IM_Everhoof_API -- start:prod
pm2 save
Application will start on 5510 port.