-
Notifications
You must be signed in to change notification settings - Fork 0
Development
Nick Budak edited this page Sep 29, 2016
·
7 revisions
Installation
Install PostgreSQL
sudo apt-get update
sudo apt-get install postgresql postgresql-contrib libpq-dev
Give your computer user permission to make PostgreSQL databases
sudo -u postgres -i
postgres@host:~$ psql
CREATE USER <hostname> with CREATEDB;
CREATE ROLE <hostname> LOGIN CREATEDB;
Use \q
to exit the console and exit
to exit the postgres account
Clone and download the repo
git clone https://github.com/WatzekDigitalInitiatives/fitbit-ror.git && cd fitbit-ror
Running the app
Pull the latest changes
git pull
Install the gems
bundle install
Create DB
rake db:create
Setup DB
rake db:migrate
Run the Rails app
rails server
Basic rails console commands. Open a new terminal and run the following command to open rails console
rails c