Skip to content

civictech-ie/waste-civictech-ie

Repository files navigation

yourwaste-ie

A rails app that powers waste.civictech.ie.

Local development

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 redis

Now 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:seed

The .env.sample file has the environment variables you'll need to get started:

cp .env.sample .env

Get the thing running:

heroku local

and, optionally for live reloading:

guard

And then head to http://localhost:5000.

Tests

Run the tests before committing code (and write a few):

rake

Credentials

You'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!).

Seed data

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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published