Web app that works with burgers database.
To install please use:
npm install
To use locally do next:
- Create mysql database using
schema.sql
- Create
.env
with login information to connect to database (DB_USER
,DB_PASS
) - Start server
node server.js
- open localhost:3000
Application deployed at heroku
For database it uses MySQL (in deployed version it's JawsDB MySQL add-on for Heroku).
Apllication allows to add new burgers to database and to move burgers from uneaten state to devoured state.
config/connection.js
- code to connect to Databaseconfig/orm.js
- code to qury databasecontrollers/burgers_controller.js
- express routesdb
- contains SQL queries to create Databasemodels/burger.js
- containsburger
class, with methods that allow Select all burgers, Insert and Update one.package.json
- info about project dependenciespublic/assets/css/style.css
- style file for html page.public/assets/img/burger.png
- image of burger.public/assets/js/burgers.js
- Javascript file for frontend part, Uses Jqueryserver.js
- runs serverviews
- contains Handlebars files to show website
Ask me
For questionts please contact me at ola.illari@gmail.com