Food waste is a huge issue. More than $140 billion dollars in food is thrown away each year in the US. There are huge economic and environmental impacts that goes along with this. Unfortunately, it's easier and cheaper than any other option for restaurants to just throw away their extra food.
##What is this thing? Leftover Love allows restaurants to sell this extra food at a discount to customers who are looking for cheap, but high quality meals. So, restaurants post available meals, and then hungry users purchase this food and a text message alert lets them now when it's ready. Includes full Stripe credit card integration.
See it here: https://baldwin-leftoverlove.herokuapp.com/#/
Video proof: https://www.youtube.com/watch?v=YVInjRZJx0Y&feature=youtu.be
##Features
- The homepage gives a brief introduction, allows users to go to the sign up/log in page, and browse available meals.
- Users choose an individual meal to order (searching for specifics in the search box if desired), and this puts the meal in the shopping cart where the user can then walk through the credit card form.
- The logged sale and credit card verification information can be viewed on Stripe's website.
Note: I used the Stripe integration in test mode. Stripe provides test card numbers.
-
Restaurants also have a dashboard view that only they can see. They can edit, delete, or add new meals for purchase.
-
A button pops up on an individual meal when the meal has been ordered. The restaurant can click when the meal is ready for pickup. This sends a text message alert to the buyer. The 'total number of pounds' number on this page increments here and also on the home page.
Note: Phone numbers have to be verified by Twilio to work, and only one can be verified at a time. Thus, a user has to be signed up as me with my phone number to work. Please see video for demo.
##Technologies
The app uses a Bootstrap framework with Angular, Angular-Stripe, HTML, and CSS. Node.js, Express to query the PostgreSQL database. Credit card integration is powered by Stripe and the awesome text message feature is courtesy of Twilio's SMS messaging.