GithubHelp home page GithubHelp logo

crud-w-express-lecture's Introduction

Week 3 Day 2

CRUD w/ Express

CREATE READ UPDATE DELETE/DESTROY

Review!!!

  • What is the number one thing to learn about Express, according to Nima?

    • Middleware Req comes in ----Middleware----> 404 | | | GET /dogs ------> HTML PAGE GET /cats -------> HTML PAGE
  • HTTP

    • Hypertext transfer protocol
    • set of rules for communication between a server and client
      • CLIENT SENDS A REQUEST
      • SERVER RESPONDS
  • Web app!

    • there are some guidelines to a web app
      • a window into some data
      • generally only 4(5???) things that we can do with data
      • CREATE
      • READ a bunch of data, or READ just one datotomus
      • Update a set of data (or a bunch of datii)
      • Delete (many/one)

Wikipedia:

  • Read articles
  • Read lists of articles
  • Edit/Update articles
  • Make new articles
  • Delete articles (if an admin)

YouTube:

  • Create (upload) a video
  • Watch (READ) a video
  • Comment (Creating a comment, Updating a video to HAVE a comment) on a video
  • Edit video (Update, Create a new version)
  • Like/dislike a video (Update like status, Create a like, Delete a like)

CLIENT wants stuff SERVER has stuff (the ability to do stuff)

HTTP verbs / methods AS A CLIENT

  • GET /dogs
  • POST /dogs {DATA}
  • PUT
  • DELETE /cakes/12

GET ----> READ POST ---> CREATE PUT ----> UPDATE (and also CREATE) ๐Ÿค” DELETE -> DESTROY/DELETE

CRUD...

BREAD Browse Read Edit Add Delete/Destroy

THEME: Blog Posts

--- can create --- can delete Blog Article: Title --- yes, edit! Body --- edit! Tags --- edit! User (name) --- cannot edit

--- can create new users Users: Name --- cannot edit this

crud-w-express-lecture's People

Contributors

nimaboscarino avatar

Watchers

James Cloos avatar

Forkers

commoddity

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.