The goal if this project is to create a more user friendly method for browsing local ordinance enforcement (LOE) cases in Greensboro, NC. The extended goal is to provide a method for rescuing houses from being demolished, and to provide developers with the tools to reach out to the city about such properties.
This project is currently staged at a free account on Heroku: [loedashboard.herokuapp.com] (https://loedashboard.herokuapp.com/)
- This is a Ruby on Rails project
- This project uses an open data set available on the Greensboro City Open Data Portal
- Ruby v2.2 or higher (not tested in earlier versions)
- PostgreSQL database
- Socrata API key (See this site to register.)
- Clone repository:
git clone [email protected]:codeforgso/LOE_dashboard.git
- Change directories:
cd LOE_dashboard
- Install gems:
bundle install
- If you are on a Mac and have trouble running this command, try this:
ARCHFLAGS="-arch x86_64" bundle install
- If you are on a Mac and have trouble running this command, try this:
- Setup config values:
- Copy sample config file:
cp .env-sample .env
- Edit
.env
file. (to get the value forSECRET_KEY_BASE
, run this command:bundle exec rake secret
)
- Copy sample config file:
- Setup database:
bundle exec rake db:migrate RAILS_ENV=development
- Seed the database (Note: this process takes many hours, as it makes API request in batches of 1,000):
bundle exec rake db:seed RAILS_ENV=development
- Run this command:
bundle exec rake s
- Visit this site http://localhost:3000
- Setup the database:
bundle exec rake db:migrate RAILS_ENV=test
- Run the test:
bundle exec rake spec