Mastering Bun - The Modern Fullstack Development

Master the Lightning-Fast JavaScript Runtime with Speed, Elegant APIs, and a Cohesive Toolkit for Ultimate Productivity

283 Learners

(166 ratings)

Created by

Init Tech Labs

This course includes:

on-demand video
Access on mobile and TV
Full lifetime access
Certificate of completion

0

0.00

What you'll learn

Bun Fundamentals: Dive deep into the core principles of Bun and unlock its full potential.

Server-Side Mastery: Build robust APIs with Express & Elysia and conquer server-side development with confidence.

Frontend Fusion: Integrate Bun with cutting-edge frontend technologies like Elysia and Vite.

Data Dynamics: Store and manage your data efficiently with SQLite, the perfect database for modern web apps.

Testing and Security: Ensure your code's reliability and protect your applications from vulnerabilities.

Real-time Power: Master socket programming and build dynamic, interactive features.

Package Management: Become a pro at managing dependencies with Bun's built-in tool...and much more!

Explore advanced Bun features, deployment strategies, and best practices.

Course Content

11 sections

103 lectures

5 hr 13 min

Course Introduction

04:00

Creating project - bun init

03:15

Understanding Project Structure

01:44

Built-in Watch mode “bun --watch” Goodbye! Nodemon

02:43

Bun --hot & watch vs hot

04:22

Code basics - function creation

04:49

Module creation - export and import

02:40

Multiple modules - export and import

02:11

Different ways of Import Paths

02:01

Default and named import/export

03:15

CommonJS Vs ESM

02:59

Variables & Datatypes

06:59

Primitive Datatype - Number

04:24

Primitive Datatype - Boolean

02:10

Primitive Datatype - Null, Undefined, Void

06:16

Primitive Datatype - "any"

01:36

Type Annotation & Inference

02:43

String

05:08

Unicode Values

02:33

Template Literal

03:32

Type Aliases

02:59

“never” Type

03:40

Introduction to Buffers

00:52

Numeric Systems

04:05

Working with Buffers

02:15

Charecter Sets - Unicode

02:01

Array Buffers

04:17

Introduction

01:07

Bun.file() - Reading Files

03:07

Reading JSON file with file

02:27

Reading a File in Various Data Forms

03:20

Reading File On Content Change

02:21

Writing Data in File

02:29

Assignment - Live File Copier

02:27

Delete File - unlink()

01:33

Introduction

03:23

Creating a Server using Bun.serve()

02:00

Understanding the Request Object

01:25

Understanding the Server Object

01:35

Understanding Routes with req.url

02:04

Parsing URLs - new URL()

02:21

Sending JSON Response

01:50

<form>, Query String - GET method

03:19

Request with POST Method

01:37

Decoding POST-ed Data

02:24

Introduction and Installation to Express

00:58

Creating Server with Express

01:06

Understanding the Request

03:02

Responding to the Request

02:43

Response Headers & Content-Type

01:43

Defining Routes

01:41

Wildcard Characters in Routing

02:36

Dealing with URL parameters

02:56

POST Request With Express

04:32

Accessing POST-ed Data with Middleware

02:32

express.Router() - Better Approach for Routes

04:29

POSTMAN - Introduction & Installation

01:57

Making Request Using POSTMAN

01:37

PUT, PATCH, DELETE Request

03:01

res.sendFile() & Bun meta.dir - Serving HTML Files

04:09

Serving static files with express

03:32

Introducing Elysia

01:43

Project Creation

03:03

Understanding the Context Object

01:22

Responding to the Client

01:07

Configuring Routes

02:38

The “.all()” Route Handler

02:42

Working with URL Parameters

02:21

Grouping Routes - group()

02:22

Defining URL Prefix

01:23

Modular Logic - Plugins

02:36

Functional Callback Plugin

01:47

Sending HTML

02:17

Sending JSX

03:00

Serving Static Files

03:12

Introduction to SQLite

01:42

Creating SQLite Database

03:01

Executing SQLite Queries using run()

01:47

Fetching Data in Various Forms from Database

02:40

Passing Parameters in SQLite Queries

02:34

App Creation

01:41

Configuring the HTML and Static Plugins

02:36

Sending the Add, Edit Pages

02:23

Configuring the SQLite Database

03:55

Adding Product to Database

04:14

Rendering Products Dynamically

05:42

Updating Product Data

03:50

Deleting Product from Database

02:56

Introduction To WebSockets

04:38

Getting Started With WebSocket

07:04

Creating Client HTML

03:00

Generating a Client Id

04:33

Disconnecting Client & Sever

02:34

WebSocket Events (Transfer messages in real time)

05:56

WebSocket Events (Broadcasting Messages)

02:36

Broadcasting message to connected clients

05:25

Event Acknowledgements

03:00

Rendering messages inside the template

05:41

Storing & Displaying Connected Users In Chat Page - Part 1

06:12

Storing & Displaying Connected Users In Chat Page - Part 2

06:30

Sorting The Displayed Users

05:54

Updating the UI

04:27

Broadcasting Rendered Message To Clients

02:20

Requirements

Basic HTML, CSS & JavaScript/TypeScript knowledge, but it isn't mandatory! Time, attention and dedication to learn & practice.

5.0

Course Rating

166 Reviews

Hemang Pavar
Hemang Pavar

February 5, 2025

"I love this course"