/old_website

Code for PDX website

Primary LanguageRuby

README

Application Setup

Install Ruby Version: 2.5.1 If you use RVM:

 $ rvm install ruby-2.5.1

Switch to ruby version 2.5.1

Install postgresql: (if you haven't)

  $ sudo apt update
  $ sudo apt install postgresql postgresql-contrib
  $ sudo -u postgres psql

Setup postgresql and create admin user that matches your username

  $ sudo -i -u postgres
  $ sudo -u postgres createuser --interactive

Install the gems:

  $ bundle install 

Create and migrate the database

  $ rails db:create 
  $ rails db:migrate
  $ rails db:seed

Run the server

  $ rails s  

website