This is a simple app. built on MySQL, Node, Express & Handlebars to demonstrate web based read/update actions against mysql database.
- Eat-Da-Burger! is a restaurant app that lets the users input the names of burgers they'd like to eat.
- The user submits a burger's name in the form, and it will create a record, and display it on the page
waiting to be devoured
. - Just click the
Devour it!
button, to comsume the burger, from which the burger show on the devoured column. - The application will keep history of Burgers made and consumed.
- Clone & Setup Application
- Clone Repo [git link]
- Install required modules
npm install
.
- Setup the Database
- go to config directory to provide DB credentials.
- modify the
connection.js
to suite needs
- modify the
- From withing the
burger/db
directory,
a. Run setup script
--- or ---
b. Importschema.sql
&seeds.sql
- go to config directory to provide DB credentials.
- Start the Application
#> node server.js
- Use web App
All the recommended files and directories from the steps above should look like the following structure:
.
├── config
│ ├── connection.js
│ └── orm.js
│
├── controllers
│ └── burgers_controller.js
│
├── db
│ ├── schema.sql
│ └── seeds.sql
│
├── models
│ └── burger.js
│
├── node_modules
│
├── package.json
│
├── public
│ └── assets
│ ├── css
│ │ └── burger_style.css
│ └── img
│ └── burger.png
│
├── server.js
│
└── views
├── index.handlebars
└── layouts
└── main.handlebars
Current versions of
Tech | Flavor |
---|---|
OS | Linux or Mac |
Languanges | NodeJS |
Database | MySQL |
Feel free to try Heroku for hosting this app, but at your own risk. Please note that while Heroku is free, it will request credit card information if you have more than 5 applications at a time or are adding a database.
Please see Heroku’s Account Verification Information for more details.
Good Luck!