Eat-Da-Burger is a restaurant app that lets users input the names of burgers they'd like to eat (with MySQL, Node, Express, Handlebars and a homemade ORM).
- Whenever a user submits a burger's name, your app will display the burger on the left side of the page -- waiting to be devoured.
- Each burger in the waiting area also has a Devour it! button. When the user clicks it, the burger will move the right side of the page.
- The app will store every burger in a database, whether devoured or not.
- Node.js
- MySQL Workbench
- NPM Packages:
- Express
- Express-handlers
- Body-Parser
- MySQL
- dotenv
- Visual Studio Code
- Git Bash
- Chrome
All the recommended files and directories from the steps above should look like the following structure:
-
Fork a copy to your GitHub repo and clone it to your computer.
-
Get to your Git Bash and get into the folder EatDaBurger.
-
To get all the npm packages required to run this app - type into the command line
npm install
-
Create a server.js file.
-
On your computer, open MySQL Workbench and login to a local server you have to set up.
-
Open a new SQL tab for executing queries.
-
Then go back to your chosen Visual Studio Code (or a text editor of your choosing) and open your
EatDaBurger
folder. -
Inside the
EatDaBurger
folder you will find a folder calleddb
. -
In the
db
folder, open the file calledschema.sql
. Copy the code in the file and paste it to the new SQL tab you opened in MySQL Workbench. -
Go back to the
db
folder in your Visual Code Studio (or a text editor of your choosing) and open theseeds.sql
file and copy the code and paste it into the open tab in MySQL Workbench and execute the code.
-
In the command line of the main folder of
EatDaBurger
typetouch.env
. -
In your Visual Studio code (or a text editor of your choosing), open the
.env
file and typeMYSQL_PASSWORD = "enter your MySQL password"
-
In the Git Bash go into main folder of
EatDaBurger
. -
Type
node server.js
and hit enter. -
Go to your browser and open a new tab and type
localhost:3000
then hit enter.
Eat-Da-Burger Option
Order a burger
Reordering a burger
This application is deployed at https://frozen-anchorage-69675.herokuapp.com/
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.
Paoge Moua - primary author
- Contact info: paoge.moua@gmail.com OR pobzeb.m@gmail.com
- Portfolio address: https://paogemoua.github.io/
- GitHub: https://github.com/paogemoua
- 12.31.18 Project open - in progress
- 1.7.19 Initial files commited to GitHub - fail attempt
- 1.8.19 Attempt to commit new files - in progress