A rails app that powers waste.civictech.ie.
I'm assuming you have rbenv or rvm set up? And homebrew?
Next, install PostgreSQL and redis and start both services:
brew install postgresql
brew install redisNow clone the repo, install the dependencies, and set up the db.
git clone https://github.com/civictech-ie/yourwaste-ie
bundle install
bundle exec rake db:create
bundle exec rake db:migrate
bundle exec rake db:seedThe .env.sample file has the environment variables you'll need to get started:
cp .env.sample .envGet the thing running:
heroku localand, optionally for live reloading:
guardAnd then head to http://localhost:5000.
Run the tests before committing code (and write a few):
rakeYou'll need to set a Google API key in a credentials.yml file or get the master.key file from another contributor (email brian@civictech.ie and I'll respond promptly!).
The app can be seeded from a properly formatted Google Sheets document (assuming you're credentialed per the above section).
Running rake db:seed will fetch the data from Google Sheets and insert it into the app's Postgresql database. Note: this will replace any existing data you have in the local database.