Skip to content

Instantly share code, notes, and snippets.

View PDXIII's full-sized avatar
😃
Working on my website.

Peter Sekan PDXIII

😃
Working on my website.
View GitHub Profile
@luisjunco
luisjunco / react-conditional-rendering-cheatsheet.md
Created April 4, 2023 13:22
React Conditional Rendering - Cheatsheet

A: Element Variables (in your JavaScript)

function MyComponent(){

    let button;
    if (isLoggedIn) {
      button = <LogoutButton />;
 } else {
@luisjunco
luisjunco / git-branches.md
Last active February 15, 2024 08:38
Git Branches - Cheatsheet

Git Branches Cheatsheet

image


🙌 | Common operations and commands:

@luisjunco
luisjunco / react-router-cheatsheet.md
Last active February 9, 2024 06:26
React Router Cheatsheet

React Router Cheatsheet

  • This cheatsheet is based on React Router Dom v6.7.0
  • If you use a different version, some things may be different




Initial Setup

@luisjunco
luisjunco / VS -Code-Shortcuts.md
Last active November 29, 2023 11:29
VS Code Shortcuts

Common shortcuts in VS Code (Win // Mac):

  • Comment code: Ctrl (K+C) // ⌘ (K+C)
  • UnComment code: Ctrl (K+U) // ⌘ (K+U)

  • Duplicate line: Alt & Shift + Arrow Down // Option & Shift + Arrow Down
  • Multicursor: hold Alt + click // hold Option + click
@luisjunco
luisjunco / m3-react-forms.md
Last active February 9, 2024 06:25
React Forms - Cheatsheet

React Forms

Intro

  • Form elements such as <input>, <textarea>, and <select> naturally keep some internal state (and change based on user's input).

  • From the React team: > In most cases, we recommend using controlled components to implement forms. In a controlled component, form data is handled by a React component.

@luisjunco
luisjunco / m2-heroku-cheatsheet.md
Last active April 13, 2023 19:37
Heroku Cheatsheet

Heroku commands

  • Authenticate

    • heroku login
  • Open the app in the browser (from terminal)

    • heroku open
@luisjunco
luisjunco / m2-mongo-data-models.md
Last active September 29, 2023 20:37
Cheatsheet Data Models

Embedded documents vs. References

There's 2 ways of storing complex data and relationships in MongoDB/Mongoose.

  • Embedded documents

    const authorSchema = new Schema({

//...

@luisjunco
luisjunco / m2-express-cheatsheet-GET-POST.md
Last active February 28, 2024 09:27
Express Cheatsheet: GET (route params & query string) + POST (request body)

Intro

This cheatsheet covers the following topics:

  1. URL: Route Params
  2. URL: Query String
  3. Request Body

@luisjunco
luisjunco / m2-mongoose-cheatsheet.md
Last active February 28, 2024 14:31
Mongoose methods cheat sheet

Mongoose static methods:

Create

  • Model.create(data)
  • Model.insertMany(arr)

Read

  • Model.find()
  • find all documents in a collection

logo_ironhack_blue 7

General guidelines for labs/assignments

In this document, you will find all the steps you should follow when working on the labs (in the prework and during the bootcamp).

Step 1: Fork the repository

The majority of time, you will have to start the process with forking. Just a quick reminder on what is the process of forking.