A full stack app that uses Node, Express, Handlebars, MySQl and Bootstrap to allows users to order, create and "virtually" eat veggie burgers. Please see the app deployed to Heroku here.
Using a ORM, the app connects to MySql using 3 basic CRUD functions:
- READS the entries from a MySql database and dynamically adds them to the DOM.
- UPDATES the selected options upon user click of either "Order It," or "Eat It" which...
- hits an Express route
/:id
which changes the item's state to either "devoured," or "ordered." - The page re-routes to index where the chosen item is in the section that reflects it's current state(via Handlebars).
- hits an Express route
- CREATES the user has the option of ordering a custom item which they can then virtually eat... * hits a post route in Express which then adds a new burger to the MySql database * the page re-routes to the index where the user creation is rendered in the "Eat It," section(via Handlebars).
Though most of the logic is handled on the back end, Bootstrap was leveraged to provide a responsive and user friendly interface.
To deploy in your system:
- Download the repo.
- Run
npm install
to install the node dependencies - Go to
connection.js
on Line 11 change the password to your local MySql connection password - Run
db/schema.sql
anddb/seeds.sql
using MySql Workbench or a program of your choice.
- NodeJs - The programming framework
- Express - The server framework.
- MySql - Database Management
- Handlebars - Templating System
- Bootstrap - Responsive Framework System
- Melissa St Moore - Initial work
- Tips on Good Veggie Burgers - Beyond Meat, Dr. Praegers
- Inspiration - Mohawk Bend(Restaurant Site)