Coder Social home page Coder Social logo

nodeexpresshandlebars's Introduction

Node Express Handlebars

A restaurant app that lets users input the names of burgers they'd like to eat.

Employee-Tracker

Table of Contents

Technologies_Used

  • JavaScript
  • HTML
  • CSS
  • handlebars
  • express.js
  • node.js
  • mysql
  • heroku
  • JAWSDB (An addon for heroku)

Deployed Site

Node Express Handlebars

Features

1. A mysql database

In order to store and read files using a database manager I had to integrate mysql code into my javascript. I also needed to build an actual database to handle the data I was passing through (because json files aren't always so efficient.) Storing things in a database makes the data easier to manage, read and update. And is a great way to manage a lot of data

mysql-database

2. The ability to move burgers

The main point of this project is to use the Model View Control method in order to better update and manage data through a web application, in other words a fully functional website! Being able to alter the mysql (or any database) is essential to this process. It all starts with the database, which interacts with the model, which interacts with the controller, which uses the routes to display or view the behaviors. So it's hard to show snippets of code without showing the entire code because variables/objects are being passed through many steps to make sure they are dynamic and controlled.

Basically though, the burger needs to be updated in those 4 different places (database, model, controller and view) and passed through each step to get back and forth from the database. Doing it this way, assures us that everything is working, it provides quality data that displays accurately each and every time.

3. The ability to add burgers

This is a lot like updating burgers with only the slight addition that we need a separate input area to take in the burgers. This may seem like old hat for the stronger developers but, noting that there might needs to be a slightly different route I felt was necessary when we are talking about MVC.

comparing-changes

As you can see in the image above, the function is calling slightly different things. in the update we are calling an object of col vals but in create it's separated. These minor changes might seem small but these slight differences are important.

4. A deployed site on heroku

One of the biggest challenges faced in the project was deploying to heroku. Heroku was chosen because it supports server side as well as front end developed projects. Deploying heroku without mysql is a multi step process and takes some doing to get right. Deploying with mysql was even more complicated. So, in order to make sure I had the basic steps worked out well enough to deploy with mysql I created a list of instructions to share with my faculty and double check there wasn't anything I was doing wrong. heroku-readme

It's not complete but it did help me get through the project and maybe, it will help with further work later.

5. Other

For later builds

Change Hamburgers to Cookie and devoured to cooked

I would use this app to help me keep track of what I had baked and if I had done it successfully

Improve the CSS

I think I got it pretty good, but I know it could be better for this assignment, especially if I wanted to use it regularly on my phone to track all the cookies/baked goods I have made.

Usage

This is meant for major food enthusiasts (who isn't) to help ensure they are getting a wide variety of their favorite dishes. Or it can simply act as a fun little game.

Author

Rachael Kelm-Southworth

Credits

I would like to thank Kerwin, Manuel, Roger, Jerome and all my classmates for helping me understand this subject matter and anyone that contributed to make the base code.

License

MIT

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.