A food ordering experience for a single restaurant. Hungry clients of this fictitious restaurant can visit its website, select one or more dishes and place an order for pick-up. They will receive a notification when their order is ready.
This project was built using HTML, CSS, JS, jQuery, AJAX for front-end , and Node, Express and PostgreSQL for back-end.
- Clone this repository.
- From the project's root directory, install dependencies using the
npm install
command. - Create a
.env
file by runningcp .env.example .env
- this will create a copy of.env.example
- Add your Twilio api credentials into the
.env
file. If you do not have a Twilio account, please create one. - Create a database on heroku by following the steps here: https://docs.appery.io/docs/apiexpress-databaseconnection-heroku-postgres
and then add the credentials into the
.env
file. - Fix to binaries for sass by running:
npm rebuild node-sass
- Run the database schema migrations:
npm run knex migrate:latest
- Check the migrations folder to see what gets created in the DB
- Seed the database with data:
npm run knex seed:run
- Check the seeds file to see what gets seeded in the DB
- Run the server:
npm run local
- Visit
http://localhost:8080/
- Express
- Node 12.10.x or above
- body-parser
- bcrypt
- cookie-session
- twilio
- knex
- knex logger
- method-override
- morgan
- node-sass-middleware
- ejs
- dotenv
- pg
- stripe