Pinocchio Pizza is a food-take-out-ordering application that serves both: the customer and the restaurant. It acts as an intermediary. When the customer submits the order they provide their phone number, restaurant receives the order as a SMS message. The restaurant sends a response to the customer also by SMS, which lets them know how long it will take until the order is ready for pickup.
- Create the
.env
by using.env.example
as a reference:cp .env.example .env
- Update the .env file with your correct local information
- Install dependencies:
npm i
- Fix to binaries for sass:
npm rebuild node-sass
- Run migrations:
npm run knex migrate:latest
- Check the migrations folder to see what gets created in the DB
- Run the seed:
npm run knex seed:run
- Check the seeds file to see what gets seeded in the DB
- Download ngrok from
https://ngrok.com/download
- In a separate terminal run
../ngrok http 8080
- Run the server:
npm run local
- Visit
http://localhost:8080/
- Node 5.10.x or above
- NPM 3.8.x or above
- Body Parser 1.15.x or above
- Dotenv 2.0.x or above
- EJS 2.4.x or above
- Express 4.13.x or above
- Knex 0.11.x
- Knex Logger 0.1.x or above
- Morgan 1.7.x or above
- Node SASS Middleware 0.9.x or above
- pg 6.0.2 or above
- Twilio 3.31.x or above
- Nodemon 1.9.x or above