Backend code for https://github.com/ErikLarsson82/smash-ladder-fe
Deployed at https://hiqombo-ladder-be.herokuapp.com/
/players
/matches
/schedule
/schedulefight
/resolvefight
Tested with node Postgres 11.6
Clone repository
npm install
npm run start
Deploy to heroku
DATABASE_URL=localhost
DISABLE_SSL=DISABLED
SLACK_CB_URL=url
DATABASE_URL=find this URL at heroku
DISABLE_SSL=ENABLED
SLACK_CB_URL=url
Push to heroku - using .env file aswell
$ PGUSER=postgres PGPASSWORD=hej123 PGPORT=2800 heroku pg:push database_name postgresql-flexible-87882 --app hiqombo-ladder-be
$ PGUSER=postgres PGPASSWORD=hej123 PGPORT=2800 heroku pg:pull postgresql-flexible-87882 hiqombo-prod-16-jan-20 --app hiqombo-ladder-be
$ PGUSER=postgres PGPASSWORD=hej123 PGPORT=2800 heroku pg:push hiqombo-prod postgresql-flexible-87882 --app hiqombo-ladder-be
Set the SLACK_CB_URL environment variable to the target channel