#DiscoverBPS A website where you can easily find schools your children are eligible to attend based on your address. Visit Discover BPS.
- Ruby version 2.0.0
- Rails version 3.2.19
- PostgreSQL
Please note that the instructions below have only been tested on OS X. If you are running another operating system and run into any issues, feel free to update this README, or open an issue if you are unable to resolve installation issues.
###Prerequisites
OS X: Set up a dev environment on OS X with Homebrew, Git, RVM, Ruby, and Rails
Windows: Try RailsInstaller, along with some of these tutorials if you get stuck.
OS X
On OS X, the easiest way to install PostgreSQL is with Postgres.app
If that doesn't work, try this tutorial.
Other
See the Downloads page on postgresql.org for steps to install on other systems: http://www.postgresql.org/download/
script/bootstrap
If you get a permission denied
message, set the correct permissions:
chmod -R 755 script
then run script/bootstrap
.
Here's what the script will do:
- Run
bundle install
- Create the local DB and load the schema
- Import schools from the API into the DB
- Update each school's attributes from the API
This will take several minutes to run.
Start the app locally on port 8080 using Unicorn:
unicorn
- On the home page, enter "123" for "Street Number", "Main St" for "Street Name", "02115" for "ZIP", and "3" for Grade.
- Press "Next"
- Press "Next" when the confirmation popup appears
- Press "Next" again
You should see something like the results screenshot at the top of this README.