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.
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.
Next, put 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
).
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.
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"