Skip to content
This repository was archived by the owner on Jun 15, 2020. It is now read-only.
Lawrence Jiang edited this page May 9, 2019 · 11 revisions

Welcome to the judging-portal wiki!

Local Dev Setup:

  1. install node
  2. install postgres with brew install postgres and brew services start postgresql
  3. initialize database with psql -f db/portal.sql -U postgres in root
  4. npm i & npm start in root
  5. npm i & npm start in client/

Deployment Instructions:

  1. if you don't have heroku installed, run sudo npm install heroku -g.
  2. clone repo
  3. heroku create <name-of-app>
  4. heroku addons:create heroku-postgresql:hobby-dev -a <name-of-app>
  5. cat db/heroku.sql | heroku pg:psql -a <name-of-app>
  6. git push heroku master

Additional Info:

  • run cat db/heroku.sql | heroku pg:psql -a <name-of-app> to reset the database
  • run heroku pg:psql -a <name-of-app> to connect to database
Clone this wiki locally