Food Shift Web App
What is Food Shift?
Food Shift is a nonprofit organization based in Oakland works collaboratively with communities, businesses and governments to develop long-term sustainable solutions to reduce food waste and build more resilient communities. With an estimated 25% of food purchased being thrown away despite millions of Americans being food inseecure, there is definitely a problem. Food Shift is trying to fix this problem through two approaches: education and awareness campaigns, and food recovery programs.
What We Are Doing
Blueprint is creating a web application to help coordinate the food recovery efforts. The application will allow potential food donors to easily and efficiently set up one-time or recurring food donations, potential food recipients to find out and sign up for food donations, and food shifters to help move food from donors to recipients.
Who We Are
Cal Blueprint is a student-run UC Berkeley organization devoted to matching the skills of its members to their desire to see social good enacted in their community. Each semester, teams of 4-5 students work closely with a non-profit to bring technological solutions to the problems they face every day.
Firstly, make sure you have Ruby, Rails, and PostgreSQL set up correctly on your computer.
- Clone the Github repo
git clone email@example.com:calblueprint/foodshift.git
- Install all appropriate gems
config/database.ymlusing the template at
config/database.yml.sample. You may need to create a new Postgres user; there's some information here if you run into issues.
config/application.ymlusing the template at
config/application.yml.sample. This requires you to extract your AWS keys, and use a email account that you want to use. Be aware that if you're using Gmail, there might be issues with authentication. I didn't really have a good way to work around this.
rake db:migrateto set up the database completely. If you want to prepopulate the database with dummy data, you can use
rake db:populate. See the file in
lib/db.raketo learn more about the dummy data inserted.
rails sto start the server, and then navigate to
localhost:3000to see the website running on your computer!