burger: The Eat-Da-Burger! restaurant app
Eat-Da-Burger! is a restaurant app
that lets users input the names of burgers they'd like to eat. Whenever a user
submits a burger's name, the app displays 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 moves to the right
side of the page.
The application demonstrates MySQL, Node, Express, Handlebars and a homemade ORM (object-relational mapper). It follows the MVC (model-view-controller) design pattern, using Node and MySQL to query and route data, and Handlebars to generate the HTML.
To run your own local copy of the application, you must first set up a local
copy of MySQL on port 3306. Use the
to create and populate a database called
burgers_db. Then place an
file in the root directory of the app with your MySQL username and password,
formatted like so:
npm install in the application root directory to install all
dependencies, and then
npm start to start the application.