Giter Club home page Giter Club logo

burger-sequelized's Introduction

Burger Sequelized

Bootcamp HW 15 - Sequelize

HW Instructions

  • Remove all references to your vanilla MySQL queries and replace them with Sequelize queries.

  • That means:

    • Replacing your MySQL Burger model with a Sequelized equivalent.

      • Don't forget to edit the model and initial migration file to make the burger's devoured field carry a default value of false -- otherwise you might encounter bugs.

        • There's no option to include that default in the command line, so you'll need to open up your editor to make this change.
      • Don't forget to sync the models!

      • Edit your new config.json file to include your database configurations. Place your JawsDB details in the production property of your json file; the details of your local database go in the developer property.

      • Remove your old ORM file, as well as any references to it in burgers_controller.js. Replace those references with Sequelize's ORM methods.

  • When you finish, your site should function just like your last one:

Description

Burger Sequelized is the sequel to Burger and functions the same. Sequelize is used instead of the custom ORM used in the original Burger to query the database. Postgres is used for the database and the site is hosted on Heroku. ESLint is used for code linting configured to the Airbnb JavaScript style guide.

Usage

  • Enter your burger of choice in the blank text field (plain, deluxe, supreme, etc.)
  • Click the Submit button to add it to the Burgers section
  • Click the Devour it! button to move it to the Burgers Devoured section

Tech

Setup

Install dependencies:

$ npm install

Start the server with auto-update:

$ npm start:watch

Run Sass compiler with auto-update:

$ npm sass:watch

Run ESLint with auto-fix:

$ npm lint:fix

burger-sequelized's People

Contributors

t-d-o-g avatar

Watchers

James Cloos avatar  avatar

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.