Surplus Β·
Surplus is an application that prevents restaurants from losing money due to food waste and focuses on high food insecurity rates amongst college students.
LinkedIn: https://www.linkedin.com/company/surplusfoods/
(Surplus: Get Started Screen)
Surplus is an application that prevents restaurants from losing money due to food waste and focuses on high food insecurity rates amongst college students. 1 in 4 college students go hungry every night across the United States. Restaurants will post leftovers on our application that would otherwise be thrown away at a discounted price. Students will be notified that a local restaurant is offering a special deal and have the opportunity to pay a lesser price for a meal while restaurants can make extra money. Restaurants are able to make some of their money back, students can grab a discounted meal β food doesnβt end up in the trash and students have the opportunity to have a meal.
(U.S. Restaurant Food Waste Statistic)
ID | Requirement | Priority | Complete |
---|---|---|---|
1 | As an unauthorized customer, I want to create a new account | Essential | x |
2 | As an authorized customer, I want to retrieve all food options | Essential | x |
3 | As an authorized customer, I want to add food item(s) to the shopping cart and view items that have already been added to the shopping cart | Essential | x |
4 | As an authorized customer, I want to edit my account information | Essential | x |
5 | As an authorized customer, I want to delete food item(s) from the shopping cart | Essential | x |
6 | As an authorized customer, I want to reserve food item(s) | Essential | x |
7 | As an unauthorized business owner, I want to create a new account and claim my business | Essential | x |
8 | As an authorized business owner, I want to post new food item(s) into the menu | Essential | x |
9 | As an authorized business owner, I want to edit food item(s) from the menu | Essential | x |
10 | As an authorized business owner, I want to delete food item(s) from the menu | Essential | x |
11 | As an authorized business owner, I want to edit my personal information | Essential | x |
12 | As an authorized business owner, I want to edit my restaurant information | Essential | x |
13 | As a authorized customer, I want an email confirmation of my food reservation(s) | Desirable | |
14 | As a customer, I want to search for food items | Desirable | |
15 | Integrate a payment system (i.e. Paypal or Stripe) | Desirable | |
16 | As an authorized customer, I want to add/edit/remove credit card information | Desirable | |
17 | As an authorized business owner, I want to retrieve money made | Desirable | |
18 | Create an account using Facebook or Google+ | Desirable | |
19 | Browse as guest | Desirable | x |
20 | Include a reward system for loyal customers | Optional | |
21 | Add map for each restaurant to show the distance from current location | Optional | |
22 | As an authorized customer, I want to edit the quantity of food item(s) in the shopping cart | Optional |
1. React Native:
We use React Native to develop applications for iOS. It enables developers to use React along with native platform capabilities.
2. Firebase Database:
Firebase was our main database (Firebase Realtime Database) that was used. We also used Firebase authentication.
These are the installation instructions to install the Surplus iOS application.
To do the installation properly, make sure you have the correct dependencies first. The latest version of Mac Mojave MUST be installed. You will also need to have the LATEST version of Xcode. To install React Native and CocoaPods, follow the steps in the 'Prerequisites' section.
Once all of these dependencies AND Prerequisites are done, THEN you may start the 'Installation instructions' section
Mac Mojave installed Xcode 10.1 or above React Native version 0.58.3 CocoaPods
-
Install CocoaPods by typing in to the terminal: 'sudo gem install cocoapods'
-
Install the latest React Native framework using Homebrew. Type these commands, IN ORDER, onto the terminal
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew install node
brew install watchman
brew install wget
brew install yarn
brew install -g react-native-cli
- Unzip the 'Surplus' folder onto the Desktop
- Open up a terminal and 'cd' into the unzipped folder:
- This can be done by typing in 'cd ~/Desktop/Surplus' onto the terminal
- Once you are inside the Surplus folder, type 'npm install'
- Open the XCode project file titled 'Surplus.xcworkspace'
- Its located in 'Surplus/ios/Surplus.xcworkspace'
- Once XCode opens, open up the XCode Preferences
- This can be found under 'Xcode' in the menu bar
- Once the Preferences are opened, Navigate to 'Locations'
- Under 'Command Line Tools', make sure at least 'Xcode 10.1' or above is selected
- Close the Preferences
- Under 'Product' in the Xcode menu bar, select 'Build'
- Once the project builds successfully, on the top left next to the 'Play' button, choose an iPhone simulator
- Hit the 'Play' button to start the Surplus app
Surplus was developed by
- Francisco Ibarra : Spearheading back-end and database
- Jasmine Mai : Spearheading front-end and deliverable writer
- Nhat Nguyen : JavaScript consultant and full stack
- Cong He : User Experience and deliverable writer