Skip to content
100x Projects (offline)
Search
Ctrl
K
Cancel
Select theme
Dark
Light
Auto
Menu
Web Development
Middlwares in next
What are middlewares?
middlewares + Next
Code
Code #2
Selectively running middlewares
Typescript
Types of Languages
What is Typescript
The tsc compiler
Basic types in TS
The tsconfig file
Interfaces
Types
Arrays in TS
Enums
Generics
Exporting and importing modules
Advance Web Development
NextJS Part 3
What we’ve covered
Route groups ()
Dynamic routes []
[...]
Catch all [[…slug]]
Static site generation
Hydration
Middlewares in next
Assignment/Project
GRPC
What is RPC
Implementing a dump RPC
Some common RPC protocols
Proto buffs
Types in pbf
Implementing services
Implementing services using grpc
Adding types
OpenAPI Spec
Why OpenAPI Spec
What is the OpenAPI Spec
Parts of the spec file
How to create a spec
Hono + Zod + OpenAPI
Create a swagger page
Auto generated clients
Frontend Deployments on AWS
Step 1 - How to deploy Frontends to AWS
Step 2 - Build your React frontend
Step 3 - What are CDNs?
Step 4 - Creating an object store in AWS
Step 5 - Upload the file bundle to S3
Step 6 - Try accessing the website
Step 7 - Connecting Cloudfront
Step 8 - Connect your own domain to it
Step 9 - Error pages
More Typescript APIs
Step 1 - Pre-requisites
Pick
Partial
Readonly
Record
Exclude
Type inference in zod
CSR vs SSR vs SSG
Client Side rendering
Server side rendering
Static site generation
NextJS (Server side)
Step 1 - Backends in Next.js
Step 2 - Recap of Data fetching in React
Step 3 - Data fetching in Next
Step 4 - Loaders in Next
Step 5 - Introducing api routes in Next.js
Step 6 - Let’s move the backend into our own app
Step 7 - Frontend for Signing up
Step 8 - Backend for signing up
Step 9 - Databases!
Step 10 - Better fetches
Step 11 - Singleton prisma client
Step 12 - Server Actions
NextJS (Client side)
Step 1 - NextJS Intro, Pre-requisites
Step 2 - SEO Optimisation
Step 3 - Waterfalling problem
Step 4 - Next.js offerings
Step 5 - Let’s bootstrap a simple Next app
Step 6 - Understanding routing in Next
Step 7 - Prettify the signin page
Step 8 - Server side rendering
Step 9 - Layouts
Step 10 - Layouts in sub routes
Step 11 - Merging routes
Step 12 - components directory
Step 13 - Add a button onclick handler
Step 14 - Client and server components
Turborepo and Monorepos
What are monorepos
Why Monorepos?
Common monorepo framework in Node.js
History of Turborepo
Build system vs Orchestrator
Turborepo as a build system orchestrator
Let’s initialize a simple Turborepo
Explore the folder structure
Let’s try to run the project
Exploring root package.json
Exploring packages/ui
Exploring apps/web
Let’s add a new page
Exploring turbo.json
Adding React projects
Caching in Turborepo
Adding a Node.js app
Adding a common module
Prisma
What are ORMs
Why ORMs
What is Prisma
Installing prisma in a fresh app
Selecting your database
Defining your data model
Exploring your database
Generating the prisma client
Creating your first app
Relationships
Todo functions
Expressify it
AWS Deploying (EC2)
What is AWS
EC2 servers
Creating a new EC2 server
SSH into server
Install the repo
Try hitting the server
nginx
Certificate management
Serverless Backends
What are backends servers?
What are serverless Backends
Famous serverless providers
When should you use a serverless architecture?
Cloudflare workers setup
How cloudflare workers work?
Initializing a worker
Deploying a worker
Adding express to it
Using hono
Middlewares
Connecting to DB
SQL databases
Types of databases
Why not NoSQL
Why SQL?
Creating a database
Using a library that let’s you connect and put data in it.
Creating a table and defining it’s schema.
Interacting with the database
How to do queries from a Node.js app?
Creating a simple Node.js app
Relationships
Joins
Redis (Pub subs and Messaging queues)
What are we learning
Redis
Starting redis locally
Redis as a DB
Redis as a queue
Talking to redis via Node.js
Pub subs
Pub subs in Node.js
Assignment
Next Auth
What is next auth?
Why not use JWT + localstorage?
NextAuth
Catch all routes
Give NextAuth access to a catch-all
Credentials provider
Adding Google Provider
Adding Github provider
Custom Signup page
Frontend
Recoil
Context
Introducing recoil
Recoil vs context api
Atom
memo
Alternate approach
Selector
React
1. Starting a react project locally
2. Components
3. useState
4. Tracking re-renders
5. useEffect
6. props
7. Conditional Rendering
8. children
9. Lists and Keys
10. Inline styling
11. Class based vs functional components
12. Lifecycle events
13. Error boundary
14. Fragment
15. Single page applications, routing
16. Layouts
17. Building a website
18. useRef
19. Custom hooks
20. Rolling up the state, unoptimal re-renders
21. Prop drilling
21. Context API
22. Testing the context api
23. Introducing recoil
DOM Part 2
Context for today
Complex DOM manipulation
Finishing the TODO App - 2
TODO app
State derived frontends
State derived rendering
Add TODO functionality
Delete functionality
Basics of DOM
What is DOM?
Static HTML
Dynamic HTML
Fetching elements
Updating elements
Deleting elements
Adding elements
More complex elements
Custom Hooks
1 - What are hooks
2 - What are custom hooks
3 - Data fetching hooks
4 - Browser functionality related hooks
5 - Performance/Timer based
Backend & APIs
Websockets
Websockets
Websockets in Node.js
Ws in Node.js (Code)
Client side code
Scaling ws servers
MongoDB, Zod, Error handling and Input validation
Context
What are databases
MongoDB and NoSQL databases
Creating a free MongoDB Server
Seeding data in the DB
CRUD Operations
Creating the backend of a todo app
Testing your app
Improvements
Hashing password
Error handling
Input validation
Relationships in mongo
Authentication
Context
Auth workflow (Bank example)
Auth workflow
Creating an express app
Creating an authenticated EP
Tokens vs JWTs
JWTs
Replace token logic with jwt
JWTs can be DECODED by anyone
Assignment: Creating an auth middleware
Writing the frontend for it
Assignment: Creating a TODO app
HTTP Deep dive
Recap
Headers
Fetch API
Create an HTTP Server
Middlewares
Route specific middlewares
Assignments on middleware
Commonly used middlewares
cors - Cross origin resource sharing
Intro to HTTP
Context
Why the HTTP Protocol?
Request Response model
Domain name/IP
Ports
Methods
Response
Status codes
Body
Routes
Headers
Do we understand the following now?
Clients (Postman/curl/browser)
Writing HTTP code in js
Node.js Runtime
What is Node.js?
What is bun?
Starting a Node.js project
npm
Internal packages
External packages
package-lock.json
Assignments #1 - Create a cli
Assignment #2
WebRTC Basic implementation, advance discussion
Why WebRTC?
WebRTC Architecture/jargon
Connecting the two sides
Implementation
Backend
Frontend
Webrtc stats
Using libraries for p2p
Other architectures
Horizontal and vertical scaling, Indexes in DBs
What we’re discussing
Vertical scaling
Implementing horizontal scaling in Node.js project
Capacity estimation
Horizontal scaling
Indexing in Postgres
Complex indexes
Indexes in Prisma
Normalization
Types of relationships
Normalizing data
Singleton Pattern, Backend State management and Pub Subs
What we’re learning
Stateful vs Stateless Backends
State in JS process
Classes and Singleton pattern
Pub Sub + Singleton
Pub Sub + Singleton (Implementation)
Language Fundamentals
Promises and async, await
Shoutouts
Classes in JS
Inheritance in classes
Some more classes
Promise class
Callback hell
Async await syntax
Defining your own async function
err first callback vs rejects in promises
Assignments
Asynchronous Javascript, Callbacks and more
Introduction
Normal functions in JS
Synchronous code
I/O heavy operations
I/O bound tasks vs CPU bound tasks
Doing I/O bound tasks in the real world
Functional arguments
Asynchronous code, callbacks
JS Architecture for async code
Javascript 101
Did you code yesterday?
Javascript - The basics
Properties of JS
Syntax of Javascript
Complex types
Rust Bootcamp
Preface
Syllabus
Why rust? Isn’t Node.js enough?
Initializing rust locally
Initializing a rust project
VSCode setup + Hello world
Simple Variables in rust
Conditionals, loops…
Functions
Memory Management in Rust
Jargon #0 - Mutability
Jargon #1 - Stack vs heap
Jargon #2 - Ownership
Jargon #3 -
Structs
Implementing structs
Enums
Pattern matching
Error handling
Option enum
Collections
Cargo, packages and external deps
Leftovers - Traits, Generics and Lifetimes, Multithreading, macros, async ops (Futures)
Web3 & Blockchain
Rust for Solana contracts
Transaction, IDLs in Solana
Web 3 Cohort
Context
Installation
Data types in rust
Conditionals, loops…
Mutable vs immutable variables
Functions
Ownership of heap variables
Borrowing and references
Structs
Implementing structs
Enums
Pattern matching
Error handling
Option enum
External packages (crates)
Generics and trait bounds
Generics over structs
Generics over enums
Traits
Implementing and deriving traits using macros
Serde
Borsh
iterators
End to end contract with FE
Web 3 Cohort
Step 1 - Writing the contract
Writing the FE
Add the
Assignment
Upgradable staking contract
Web 3 Cohort
Pre-requisites
Initialize contract
Fixing the problem
Proxy contract
Moving further
Upgradable contracts
Web 3 Cohort
Context
Immutable contracts
Upgradability in Ethereum Contracts
Naive approaches
delegateCall
Example contract using delegateCall
Proxy Pattern
Adding onlyOwner to it
Storage layout
Solution
Problem with current proxy
fallback Function
Simple proxy
ERC-1967 contract
Common Proxy patterns
Transparent proxy
UUPS
Beacon proxy
Client side ETH
Web 3 Cohort
Recap until now
ETH RPC
Interacting with an existing contract (from the browser)
Calling read only functions (from the browser)
Writing to a contract (from the browser)
Interacting from the server (node.js process)
Bridges
Web 3 Cohort
Build a contract that lets me lock my erc-20 tokens somewhere.
Deploying it
Bridge
Contract structure
One way bridge
Code
Discussion about nonces
Write the test for our one way bridge
Ganache, Trufle, Hardhat and Foundry
Web 3 Cohort
Local development in ETH
Ganache and Truffle
Hardhat
Foundry
Installing Foundry
Your first contract
Installing external packages
Creating an ERC-20 contract
Testing emits
Std libraries
Deploying contracts
Solidity
Web 3 Cohort
What is solidity
ABIs and Bytecode
Solidity vs JS
DEXs, funding
Web 3 Cohort
Context
Solana vs ETH
Recapping AMMs
Impermanent loss
Creating an Token
ETH on the frontend.
Web 3 Cohort
Context
Wallets in ETH
Wagmi library
TanStack, Viem, Wagmi
Hookifying viem
Connecting to the wallet
Showing user their balance
Initiate a txn
Assignments
ETH intro, EVM
Web 3 Cohort
What is ETH
What is the blockchain
Types of accounts
Physical Machine vs Virtual machine
Single threaded execution
Memory, Storage and contract
Gas limit
Opcodes
Opcodes with gas
Ownership And Authorities and PDAs
Context
Accounts
System program
BPF Loader Program
Authority in solana programs
Program derived addresses
Token Launchpad in React
Context
Transactions vs instructions
Initializing the project
Add the solana wallet adapter
Installing dependencies
Inspecting the createMint call
Adding Node polyfill
Creating the mint function
Attaching metadata
Actually minting the tokens
Client side apps in Solana, Wallet adapter
Recap until now
Creating a react app
Things to do
Requesting airdrop (Creating a faucet)
Showing user balance
Sign a message
Sending Solana
Assignment
Programs, Accounts and the Token Program
Why solana?
Accounts on Solana
Install solana cli
Web2 Data model
Data model on Solana
Creating a token
Equivalent code in JS
Equivalent code in rust/python/go
PDAs
Token-22 program
Token-22 with metadata
Creating a web based wallet, RPCs
Context
keccak-256
Frontend vs Backend, HTTP Servers
RPC, JSON-RPC
Wei, Lamports
RPC Server
Common RPC calls on Solana
Common RPC calls on ETH
Creating a web based wallet
Web3 Cohort | Orientation
Web3 Cohort by 100xDevs
Cohort 3.0 Exclusive Hackathon
Why blockchains?
How to create a new currency?
Intro to hashing
Intro to Proof of work
Intro to Bitcoin
Devops
Kafka
What is kafka?
Jargon
Start kafka locally
Kafka in a Node.js process
Breaking into prodcuer and consumer scripts
Consumer groups and partitions
Partitions in action
Three cases to discuss
Partitioning strategy
Kubernetes Part 3 (Scaling)
What we’re learning
Horizontal pod accelerator
App for the day
Creating the manifests
Scaling up
Formula for scaling up
Resource requests and limits
Cluster autoscaling
Kubernetes Lab
Docker Swarm
Intro
Architecture
Services, tasks, containers
Create a 2 node swarm
Deploying a service
Kubernetes Part 2
What we’ll be doing today
Recapping what we’ve done
Recapping how to run this locally
How to run this on a cloud provider
Services
Downsides of services
Ingress and Ingress Controller
Ingress controller
Namespaces
Install the nginx ingress controller
Adding the routing to the ingress controller
Trying traefik’s ingress controller
Secrets and configmaps
ConfigMaps
Secrets
ConfigMaps vs Secrets
Adding https using cert-manager
Volumes in docker
Volumes in k8s
Ephemeral Volumes
Persistent Volumes
Static Persistent Volumes
Automatic pv
Kubernetes Part 1
What is kubernetes
Before kubernetes
After kubernetes
Creating a k8s cluster
Kubernetes API
kubectl
Creating a Pod
Stop the pod
Kubernetes manifest
Checkpoint
Deployment
Replicaset
Series of events
Create a replicaset
Create a deployment
Why do you need deployment?
How to expose the app?
Services
Loadbalancer service
Series of events
ESLint, Prettier and Pre-commit hooks
What is Linting
ESLint
Code formatting in ESLint
VSCode plugin
ESLint in react project
Popular eslint configurations
ESLint with nextjs
Prettier
Pre commit hooks
Prometheus and Grafana
Revise monitoring
Prometheus
Adding raw metrics
Add prometheus
Counters
Better structure
Gauge
Histograms
Final code
Actually starting prometheus
Queries in Prom
Graphs in prom
Grafana
Installing grafana in docker compose
Adding prometheus as a source
Alerting
Monitoring, Logging and Newrelic
Logging, monitoring, alerts and status pages
Services
Newrelic
Entities in newrelic
Dashboards
Alerts
NRQL
APM
Winston logger
Metrics on logs
p95, p99
Infrastructure tab
Status pages/Notifiers
Problem?
Actionable Docker
Actionable docker
Installing Docker
What are we using docker for?
Where can we get packages from?
Common commands to know
Common packages
CI/CD
What is CI and CD?
Continuous Deployment in Github
Monorepo we’re dealing with today
How to create a CI/CD pipeline?
Step 1 - Create the CI pipeline
Lets add a build pipeline for our repo
Let’s add a deploy step
Let’s pull the docker image
Security & Cryptography
Public Key Cryptography
Banks vs Blockchains
Bits and bytes
Encodings
Hashing vs encryption
Asymetric Encryption
Creating a public/private keypair
How to transactions work on the blockchain?
Hierarchical Deterministic (HD) Wallet
How to create a wallet
Assignments
Rate limitting, DDoS and Captcha
Why rate limitting
Common place to add rate limits
Implement a simple reset pass endpoint
Exploiting the endpoint
Exploiting one in production
Saving the endpoint
Problem?
Captchas
Adding captchas via cloudflare
DDoS protection in prod
Testing
Integration and End to End testing
Unit testing
Integration tests
Pre-requisites of writing integration tests
Starting the DB
Bootstraping Integration tests in vitest
Adding integration tests
beforeEach and beforeAll function
CI/CD pipeline
End to end tests
Cypress
Testing in the MERN Stack
Testing in Node.js + Express
Testing a simple app
Testing an express app
Slightly more complex endpoint
Moving from jest to vitest
Simple express project with vitest
Adding a database
Mocking dependencies
Deep mocking
Mocking return values
Spys vs Mocks
Adding a CI/CD pipeline
Unit tests vs integration tests vs end to end tests
Data Structures and Algorithms
Linked List
Introduction to Linked Lists
Operations on a linked list
Reversing a Linked List
Detect cycle in a linked list
Add 2 numbers
Doubly Linked List
Binary search, two sum and strings
Binary Search
Binary Search in Action
Question: 2 sum
Question:
lower-bound like searches
Question:
Taking it to the next level
Q - Vasya and String
Q -
Recursion
Introduction to Recursion (1)
Nearby Squares (1)
Divide and Conquer (1)
How to think recursively? (1)
Backtracking (1)
Problem: Staircase (1)
C++ Part 2
Strings (1)
Pointers (1)
Dynamic allocation (1)
Function call argumens (1)
Classes and objects (1)
C++ Part 1
C++ Setup (1)
Understanding our basic C++ program (1)
I/O operations (1)
Data types in C++ (1)
Conditional statements in C++ (1)
Looping statements (1)
Functions (1)
Arrays (1)
Arrays
Overall Plan
Complexity Analysis
Asymptotic Notations
Problems
Some popular complexities
Master Theorem
Intro Class 2- DSA
Today’s topics
Concept of prefix
Problem 1: Highest altitude
Frequency arrays
Problem 2: Most frequent character
Handling ranges: Prefix sum + frequency array
Problem 3: Maximum platforms needed
A technique to approach problems
Problem 4: Subarray sums divisible by K
Sliding window
Problem 5: Find the K-Beauty of a Number
Problem 6: Number of substrings containing all 3 characters
Problem 7: Count number of nice subarrays
Intro Class - DSA
What is DSA? CP vs DSA?
Choice of Language
Arrays / Lists
Strings
Problem 1: Good Pairs
Problem 2: Chef and Happy Strings
Problem 3
Projects
Building an Exchange - Part 2 (Backend)
What we did last week
What we’re doing today
Backend Architecture
Pub subs
Singletons
Building an Exchange - Part 1
What is an exchange
Core concepts
Types of orders
Jargon
How orders are made
Backend Routes
Websocket streams
Architecture
Coding the API Server
Building Codeforces (Project track)
Project demo
Things to learn
Good to haves
Extra discussions
Tech stack
System design (Platform)
System design (setter)
Database design
Going through the Problem setter
Going through the website code
PayTM project
Clone the repository
User Mongoose schemas
Create routers
Route user requests
External libraries
Adding backend auth routes
Middleware
User Routes
Schema
Transactions
Initialiese balances
Create a new router
New endpoints
Checkpoint
Routing in react
Writing components
Signin Page
Main component
Auth Components
Signin-ed Comonents
Wiring it all up
Blogging website
Step 1 - The stack
Step 2 - Initialize the backend
Step 3 - Initialize handlers
Step 4 - Initialize DB (prisma)
Step 5 - Create routes
Step 6 - Middlewares
Step 7 - Blog routes
Step 8 - Hit routes via postman
Step 9 - Deploy your app
Step 10 - Zod validation
Step 11 - Initialise common
Step 12 - Import zod in backend
Step 13 - Init the FE project
Step 14 - Add react-router-dom
Step 15 - Creating the components
Code along - Vercel
Upload Service
Deploy service
Request handler
Frontend
PayTM Part-2
Get Comfortable with the Repo
Finish onramps
Add transfers
Add P2P transactions table
Assignment: Add frontend for the p2p transactions
Extras
Web Dev + Devops Orientation
Web Dev + Devops Cohort by 100xDevs
Avoid the spikes
What would I do if I was you?
Select your level
Good things to hash out
VSCode Installation
HTML
CSS
5 tools for senior engineers (Code without your mouse)
Introduction
vi
vimium
Neovim
Vim in VSCode
Window managers
TMux
Shell config files
Cohort 3 Web Dev
Installing Node.js
Using Node.js to do assignments
Easy JS assignments for week 2
Medium JS Assignments for week 2
Hard JS Assignments
Easy Async assignment
Medium async
Select theme
Dark
Light
Auto
Web 3 Cohort
Course: ETH intro, EVM - chapter 1