FoodBar is a food-ordering app that uses the Twilio API to automate communication between vendor and client. Users can browse menus, add items to a shopping cart and review their order before checkout. Once an order is submitted, the vendor will receive an SMS confirmation message. The business can then specify a preparation time and the app will auto-generate an SMS response to the customer.
- Express
- Node 5.10.x or above
- body-parser
- node-sass
- bcrypt
- cookie-session
- postgresql
- knex
- twilio
npm install
CREATE ROLE labber WITH LOGIN password 'labber';
CREATE DATABASE midterm OWNER labber;
knex migrate:latest;
knex seed:run;
- To test the app's message features, sign up for a free Twilio API key at https://www.twilio.com/try-twilio
- Update the project's .env file with the following credentials:
TWILIO_TOKEN
TWILIO_ACCOUNT_SID
TWILIO_NUMBER
phone number provided by TwilioBUSINNESS_PHONE
phone number that will receive notifications when a customer places an order
npm run local
- Run in browser at http://localhost:8080/