node -v
> 7.6.0
If Postgres is not installed yet, follow these steps. If it is already installed, you should create a new db or use an existing one.
sudo apt-get update
sudo apt-get install postgresql postgresql-contrib
// create postgres user
sudo -i -u postgres
createuser -P --interactive <name>
createdb ragnarok
sudo apt-get install software-properties-common
sudo add-apt-repository ppa:chris-lea/redis-server
sudo apt-get update
sudo apt-get install redis-server
sudo apt-get install libcairo2-dev libjpeg8-dev libpango1.0-dev libgif-dev build-essential g++
sudo is optional on this step but you may run into node-gyp rebuild error.
sudo npm i
cp settings.json.example settings.json
sudo npm install
After you clone the settings, edit them with your connection information. You'll also need to grab your bot token from the discord api page
...
"token": "<token>",
"db":"postgres://<username>:<password>@localhost/commando"
...
If there is a sequelize error, re-run the start command. The initial "X doesn't exist is normal."
node --harmony Commando.js