Dezzki

Computer Science Major

3rd year CS student by the name Vansh Garg raised in Delhi. Wasn't aware of this tech world 2 years ago but now I want to make an identity here.

  • Studying harness engineering and documenting what I can...

JS - FastAPI Speedrun

Speed Running Js and Fast API topics in one session.

Everything was documented on Youtube Stream

JavaScript

Resource Used : FreeCodeCamp - Watched first 2 hours of the same.

**** Completed Most of the JavaScript Basics from 1 am to 3 am.

Topics Completed :

# Topic
1 Running JavaScript
2 Comment Your Code
3 Declare Variables
4 Storing Values with the Assignment Operator
5 Initializing Variables with the Assignment Operator
6 Uninitialized Variables
7 Case Sensitivity in Variables
8 Basic Math
9 Increment and Decrement
10 Decimal Numbers
11 Multiply Two Decimals
12 Divide Decimals
13 Finding a Remainder
14 Augmented Math Operations
15 Declare String Variables
16 Escaping Literal Quotes
17 Quoting Strings with Single Quotes
18 Escape Sequences
19 Plus Operator
20 Plus Equals Operator
21 Constructing Strings with Variables
22 Appending Variables to Strings
23 Length of a String
24 Bracket Notation
25 Understand String Immutability
26 Find the Nth Character
27 Word Blanks
28 Arrays
29 Nest Arrays
30 Access Array Data
31 Modify Array Data
32 Access Multi-Dimensional Arrays
33 push()
34 pop()
35 shift()
36 unshift()
37 Shopping List
38 Write Reusable with Functions
39 Arguments
40 Global Scope
41 Local Scope
42 Global vs Local Scope in Functions
43 Return a Value from a Function
44 Undefined Value returned
45 Assignment with a Returned Value
46 Stand in Line
47 Boolean Values
48 If Statements
49 Equality Operators
50 And / Or Operators
51 Else Statements
52 Else If Statements
53 Logical Order in If Else Statements
54 Chaining If Else Statements
55 Golf Code
56 Switch Statements
57 Returning Boolean Values from Functions
58 Return Early Pattern for Functions
59 Counting Cards
60 Build Objects
61 Dot Notation
62 Bracket Notation
63 Variables
64 Updating Object Properties
65 Add New Properties to Object
66 Delete Properties from Object
67 Objects for Lookups
68 Testing Objects for Properties
69 Manipulating Complex Objects

FastAPI

Resource Used FreeCodeCamp

GET - get information
POST - create something new
PUT - Update
DELETE - delete something

FastAPI creates good looking UI Docs at localhost:8000/docs for you

GET

curl -X 'GET' \ 'http://127.0.0.1:8000/' \ -H 'accept: application/json'

Status Code : 200(OK)

Response Body :

 { "name": "First Data" }

Response Header :

 content-length: 21 content-type: application/json  date: Fri,11 Sep 2026 22:29:58 GMT server: uvicorn

Path Parameter :

/get-student/{student_id}

get-student = endpoint {student_id} = Path to which student

Path (from fastapi import Path)

def get_student(student_id: int = Path(..., description="The ID of the Student you want", gt=0))

Allows to set description of what the field requires - Path(..., description="The ID of the Student you want"

Even allows setting range -

  • gt=0 (Greater Than)
  • lt =3 (Less Than)