git clone https://github.com/lucduong/servicebot.git
cd servicebot
npm i
- Download Installer package from official Postgres site.
- Flow Posgresql installation.
sudo apt-get update
sudo apt-get install postgresql postgresql-contrib
Write these lines to the end of ~/.bash_profile
or ~/.zshrc
export POSTGRES_DB_HOST=localhost
export POSTGRES_DB_PORT=5432
export POSTGRES_DB_USER=postgres
export POSTGRES_DB_PASSWORD=postgres
export POSTGRES_DB_NAME=postgres
Make sure that everything is availabel by sourcing env props.
source ~/.bash_profile
npm run build
node ./bin/start.js
npm i -g pm2
Navigate to source folder.
pm2 start ./bin/start.js --name=servicebot