Skip to content

Instantly share code, notes, and snippets.

View rogerwschmidt's full-sized avatar

Roger Schmidt rogerwschmidt

View GitHub Profile

Redux Part 1 Instructor Notes

Objectives

  • Install modules to work add redux to a react application
  • Create a redux store and connect it to react
  • Create a reducer
  • Create an action
  • Explain the flow of information and actions of react and redux

Install modules to work add redux to a react application

React Components Part 2 Instructor Notes

Objectives

  • Create a class component
  • Attach a event to a component
  • Use setState to trigger a rerender of a component
  • Use props to update classes
  • Restructure your application to have more components

Resources

@rogerwschmidt
rogerwschmidt / 01 ES6.md
Last active September 22, 2022 11:52 — forked from bwreid/01 ES6.md

ECMAScript 2015 / ES6

Objectives

  • Concatenate strings and variables with template strings
  • Declare variables with only let and const
  • Write anonymous functions with arrow functions
  • Declare defaults to functions parameters

Resource

Authorization and Authentication Part 2 - The authenticated strike back

Objectives

  • Explain what a token is
  • Explain what authorization is
  • Walk through the process of making sure a user is authenticated before accessing a route
  • Walk through the procees of making sure that user can only access resources that belong the them.
  • Walk through a full stack authorization process

Resources

Migrations and Seeds Instructor Notes

Objectives

  • Set up database connection using knex in a brand new express project
  • Create migrations
  • Create seeds

How do you setup a database connection in nodejs

  • Create empty npm project
  • Install knex and pg

Authentication and Authorization Part 1 Instructor Notes

Objectives

  • Walk through the process of creating a user
  • Create a user
  • Explain what Authentication is
  • Walk through the process of authenticating (logging in) a user
  • Explain how to use .env
  • Login a user

Query Builder Instructor Notes

Objectives

  • List the 5 crud operations, what information the request has, and what information is in the respose
  • Define what Knex.js is
  • Follow the request response cycle for an API that uses databases
  • Explain what how the model and the controller are working together to compose a response
  • Describe what happens when you throw inside a promise callback.
  • Describe how a database is set up.
  • Create a select all controller and model

Instructor Notes SQL sequel

Objectives

  • Add a not null constraint to a column
  • Insert rows into a table
  • Select rows from a table
  • Update rows from a table
  • Delete rows from a table
  • Drop tables
  • Add primary and foreign key constraints to a table