Skip to content

Instantly share code, notes, and snippets.

1-on-1 Template Questions

Variables/Data Types

  • Can you assign a string with a value of ___ to a variable called ___?
  • Can you assign a number with a value of ___ to a variable called ___?
  • Can you assign an array with a value of ___ to a variable called ___?
  • Can you update the array at position x?
  • Reassign the variable ___ with a value ____.

This gist file comprises five main sections:

  1. GUI vs. CLI: A Comparative Overview
  2. Purpose of Command Line
  3. A compilation of essential commands for file and directory management.
  4. A compilation of advanced commands for file and directory management.
  5. A practical exercise to build a sample file structure.
GUI vs. CLI: A Comparative Overview

Overview

Below are detailed instructions for adding tests to your Treasures and Trinkets Project. These tests are mandatory and essential for the project's completion. Failing to include these tests will result in a deduction of -1 point from your total score.

For a better understanding of how these tests work and why they are important, you can read this introductory tutorial on Jest testing.

To view the specific instructions and test code for each file, click on the respective sections below. Each section expands to reveal detailed steps and code snippets required for setting up your tests.


30 min, paper challenge (original, no refactor)

const chooseFriendsgiving = (hasFood, familyThere, within2Miles, noFood) => {
    let decision = "Stay Home";

    if (hasFood && !familyThere) {
        decision = "Friend 1's House";
    } else if (hasFood && familyThere && within2Miles) {

Introduction to JavaScript Data Types

Time: 2 hrs

📜 Slides

🎯 Learning Objectives

Intro To Computers and Programs

**Time: 1 hr **

📜 Slides

Link to Slides

🎯 Learning Objectives

Budget APP - Backend

Overview:

This is the backend for a basic Budget App where users can manage their financial transactions. Users can add, retrieve, update, and delete transactions.


1. Setup & Basic Configuration:

Coaching Notes:

Backend Setup:

  1. Import Necessary Modules: Start by importing the required libraries at the top of your server.js or your main application file.

    const express = require('express');
    const bodyParser = require('body-parser');
    const { Pool } = require('pg');

Setting Up an Express Backend with PostgreSQL: A Step-by-Step Guide

This guide walks you through setting up an Express backend connected to a PostgreSQL database, creating a table, seeding it, and testing endpoints with Tableplus.


1. Initial Project Setup

Why? Every project starts with an initial setup. This step creates the project structure and installs necessary packages.

🛠️ Setting Up and Ensuring Connection with PostgreSQL via TablePlus 🛠️

💡 Introduction: Before diving into data manipulation or database administration, one needs a secure and efficient platform. TablePlus provides a user-friendly interface that simplifies the interaction with PostgreSQL databases. The steps outlined below will walk you through setting up TablePlus, connecting it to a PostgreSQL database, and ensuring everything is in place for a seamless database management experience.


📚 Summary:

Access PostgreSQL: The foundational step to verify the server's operation. Database Creation: Establish a dedicated space for data, ensuring organization.