BurgerNaut is a Full Stack, CRUD web application that allows the user to input a burger they'd like to eat, then eat it and then throw it in the trash. The server is built using node, express and handlebars(for templating) and custom built ORMs. The database is built using MySQL and front end Javascipt using jQuery. Styling with CSS. This app is fully mobile responsive.
Check it out! https://burgernaut.herokuapp.com/
- Title
- Description
- Technologies
- Table of Contents
- Installation
- Screen Shots
- Code Snippets
- License
- Contributing
- Questions
Nothing to install! To use the app please click on the link below!
https://burgernaut.herokuapp.com/
Routing to update burger status
router.put("/api/burger/:id", function(req, res) {
let condition = "id = " + req.params.id;
burger.update({ eaten: req.body.eaten }, condition, function(result) {
if (result.changedRows == 0) {
// If no rows were changed, then the ID must not exist, so 404
return res.status(404).end();
} else {
res.status(200).end();
}
});
});
This license is MIT
Copyright (c) 2020 Dan Gentile
- Clone repo and create a new branch:
$ git checkout -b name_for_new_branch.
- Make changes and commit:
$ git add .
$ git commit -m "made changes"
- Push to the branch:
$ git push
- Submit Pull Request with comprehensive description of changes
If you have any questions and would like to get in touch please email me! email: dangentile@ymail.com