Code Monkey home page Code Monkey logo

burger's Introduction

Burger

Table of Contents

Synopsis

This application is designed to be able to utilize a database, update the database based on user input and update the database. This was used to better my skills with using heroku, mysql and bringing it all together to bring a working app.

Getting Started

On load of the website it will show the burgers in the database on the left. There is also an option to add in more burgers. After entering a new burger that new burger is automatically added to the bottom of the list with a button generated next to it. The devour button next to the burgers, once clicked, will then move that burger to the right side of the screen immediately. The burgers on the right side of the screen also generates a button next to it which will delete that burger from the database and make the burger disappear from the page immediately.

Tools Used

  • express
  • handlebars
  • MySql

Difficulties

One issue I ran into when making this app was how to separate the burgers based on if they were devoured or not. I was then able to find a way using handlebars to sort them with the #each & #if as well as #each & #unless. The other issue I was running into was getting the devour button to work properly. It kept coming up with an id of undefined which was making it difficult to grab that specific burger to get devoured. I changed the way I was targeting the burger with checking for a click on the document and passing the class of the button in the argument. After that I was able to target the id and the rest fell into place.

Link

Burger App Link

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.