allthesignals / equitabletod

A web application to display Equitable TOD (ETOD) scores, which measure how well transit-oriented development is oriented toward core riders and transit-dependent citizens.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Information Station

Build Status Code Climate Test Coverage

A web application to display Equitable TOD (ETOD) scores, which measure how well transit-oriented development is oriented toward core riders and transit-dependent citizens.

More information on ETOD at the Dukakis Center.

Setting up for development

These instructions are for *NIX environments only. All commands are run in Terminal. If you have questions, email mcloyd at mapc dot org.

Make sure you have installed rvm. If not, do so. Make sure to follow the instruction at the end of the installation, regarding running a command that starts with source.

If you have not done so yet, install Ruby 2.0.0.

rvm install 2.0.0

Once you have installed Ruby 2.0.0, make and use a gemset for the site.

rvm gemset use etod --create

Fork the repository by clicking the Fork button at the top of the the repo page.

Clone your fork of the repository from GitHub and cd into it.

git clone git@github.com:<your-github-username>/equitabletod.git
cd equitabletod

Install all the gems by running.

bundle install

Then, assuming you have Postgres installed, run rake db:migrate to set up the database.

You can put a backup into the database by running pg_restore -d newdb db/fixtures/backup.dump.

Or, put fake sample data into the database by running rake db:seed.

When you are ready to run the server, run rails s (short for rails server).

$ rails c
> copy_filedata("#{Rails.root}/db/fixtures/latest-csv.csv", :station_areas)
$ rake db:seed

Check that it's working

Point your browser to http://localhost:3000. You should see a sample page.

Go to http://localhost:3000/station_areas.json. You should see a collection of JSON objects representing station areas.

Go to http://localhost:3000/station_areas/1.json. You should see a single JSON object.

Developing

The master branch is to be used only for production. Develop on your own branch off of the develop branch.

So, if you are beechnut, before you start working, do:

git checkout develop
git checkout -b <my-branch-name>

Then start working and commit your changes there.

git add .
git commit -m "Your commit message here"

About

A web application to display Equitable TOD (ETOD) scores, which measure how well transit-oriented development is oriented toward core riders and transit-dependent citizens.


Languages

Language:Ruby 72.3%Language:CoffeeScript 25.3%Language:CSS 1.5%Language:HTML 0.6%Language:JavaScript 0.2%