A mini park finder for San Francisco built in Rails by khopsickle.
-
See it live on Heroku, may take a few seconds to load the inactive dyno.
-
Features:
- Search parks by zip code or list all
- Sort and filter results by grades or acreage
- Sign up to add parks to favorites
- Admin account can refresh data from SF Open Data API
- Soda-Ruby accesses the San Francisco Open Data API to pull and save relevant park data to a PostgreSQL database
- Figaro for credentials management
- ActiveRecord queries are built to filter results on Park index page
- Google Maps API to map parks
- After forking and cloning, setup an
application.ymlfor credentials:- SF Open Data:
APP_TOKENSECRET_TOKENDOMAIN
GOOGLE_API_KEYADMIN_PASSWORDsets a password for the admin user
- SF Open Data:
- Install and setup the db:
bundle installrails db:setup
- Run the server and login as an admin:
- Email: admin@admin.com
- Password: password you setup in applicaiton.yml
- Visit
localhost:3000/refresh- this hits the API to pull data into your application
