=========
PizzaShack is a web based food ordering system which allows customers to place orders online, and lets the restaurant receive orders and reply with an estimated completion time through SMS messaging. This web application is a midterm project for the Lighthouse Labs Web Development bootcamp, and is built to practice front-end (html, SASS, JS, JQuery), back-end (Express), and databasing (PostGreSQL) skills.
- Fork this repository, then clone your fork of this repository.
- Create the
.env
by using.env.example
as a reference:cp .env.example .env
, change TO_NUMBER to 'restaurant' phone number, and TWILIO_SID and TWILIO_TOKEN with Twilio account information. Ensure that your restaurant phone number is verified on Twilio. - Update the .env file with your psql database information
- username
- password
- database
- Install dependencies:
npm i
- Fix to binaries for sass:
npm rebuild node-sass
- Reset database:
npm run db:reset
- Check the db folder to see what gets created and seeded in the SDB
- Run the server:
npm run local
- Note: nodemon is used, so you should not have to restart your server
- Run
Ngrok http 8080
on a seperate terminal window and paste [ngrok forwarding url]/order/:id onto Twilio phone number settings under messaging with Webhook & HTTP Post selected - Visit
http://localhost:8080/
- Node 10.x or above
- NPM 5.x or above
- PG 6.x or above (use 8.x if not working)
- SASS 6.x