Input: CSV of Mixt Greens orders
Output: Orders Mixt Greens delivery
- ruby 2.3.1
- selenium chromedriver (brew install
chromedriver
)
Make a Google Form. It should export a CSV that looks like this:
Timestamp,Username,Name,What kind of thing?,What menu item?,Customize your item?
6/21/2016 10:04:13,joanna@initech.com,Joanna,Salad,Be Well,Medium dressing
6/21/2016 10:05:10,peter@initech.com,Peter Gibbons,Salad,Cowboy,Heavy on the dressing :)
- Field names don't matter.
- Timestamp, Username, and Customize are ignored.
- Create a
.env
file and specify ADDRESS1, ADDRESS2, CITY and ZIP - Go to the site and find the store URL you want. Specify it as STORE_URL.
rescue start.rb ~/Downloads/Form\ Responses\ 1.csv 6/22/2016
- It will stop when it gets stuck, then you get to manually enter in the orders.
- Enter payment manually.
- BUG: Doesn't do order customization
- TIP: Make sure the "What menu item?" is enumerable. Don't trust user input ;)
- License: MIT