Curso do Academind Pro
Bun - The Practical Guide
Learn Bun as a modern JavaScript and TypeScript runtime, package manager, test runner, build tool, and full-stack backend platform.
- 3 seções · 58 aulas
- 4 h e 4 min no total
Sobre este curso
You’ve probably heard that Bun is fast—but it can still be hard to tell what that means for real projects. Is it a Node.js alternative, a package manager, a test runner, a bundler, or an all-in-one toolkit? And when should you actually reach for Bun instead of the tools you already know?
This course gives you a practical, developer-focused path through Bun’s most important capabilities. You’ll explore the runtime, package and project management, Node.js compatibility, HTTP servers, routing, built-in file and image APIs, SQLite and SQL support, S3-compatible storage, WebSockets, testing, and build workflows—using finished examples that are explained in depth instead of turning the course into a slow type-along.
By the end, you’ll understand how to use Bun confidently in modern web projects and be ready for the AI engineering age: able to judge when Bun is the right tool, guide or review generated Bun code, and build a complete social network app that combines Bun’s runtime, APIs, and tooling in one realistic project.
O que você vai aprender
You’ll go beyond “Bun is fast” and learn how to use its runtime, package manager, test runner, built-in APIs, and project workflows in practical JavaScript and TypeScript applications.
- 01
Understand Bun's role
Learn what Bun actually is: a JavaScript and TypeScript runtime, package manager, test runner, bundler, and API platform. You’ll see where it overlaps with Node.js and where Bun offers its own workflow and capabilities.
- 02
Run and manage projects
Use Bun to run TypeScript directly, initialize projects, manage dependencies, configure behavior with
bunfig.toml, and work with Node.js compatibility so you can adopt Bun intentionally instead of guessing. - 03
Build Bun-powered servers
Create HTTP servers with
Bun.serve(), handle requests and responses, define routes, process form data, and structure server logic using Bun-native features and familiar Web APIs. - 04
Use core Bun APIs
Work with Bun’s file APIs, static imports, globbing, Markdown workflows, image processing, environment variables, SQLite, SQL/PostgreSQL access, S3-compatible storage, and WebSockets through practical examples.
- 05
Test, build, and ship tools
Write tests with Bun’s built-in test runner, use Bun’s build features, and package practical utilities as single-file executables so you can create scripts, CLIs, and backend tools with fewer moving parts.
- 06
Analyze a complete app
Explore a complete social network app that uses Bun for the backend, routing, SQLite persistence, S3-compatible image uploads, image optimization, and tests—showing how the pieces fit together in a real project.
Pré-requisitos
Basic JavaScript knowledge is required.
Node.js experience is helpful but not required.
No prior Bun experience is required.
Para quem é este curso
Web developers exploring Bun
You build websites or web apps with JavaScript and want a clear, practical overview of what Bun can do beyond headline performance claims.
Node.js developers
You’re comfortable with the Node.js ecosystem and want to understand whether Bun can replace or complement parts of your runtime, package-management, testing, and backend workflow.
Fullstack builders
You want to use one modern toolchain for scripts, dependencies, servers, files, databases, uploads, tests, and complete project workflows instead of stitching together more tools than necessary.
Conteúdo do curso
Confira a estrutura e o ritmo deste curso antes de começar.
1Essentials16 aulas · 1 h e 6 min
- 01Welcome To The Course0:55 min
- 02What Is Bun? And Why Would You Use It?4:37 min
- 03Installing Bun & About This Course1:26 min
- 04Running TypeScript Code1:15 min
- 05Bun For Package & Project Management4:07 min
- 06Bun AI Agent Skill0:00 min
- 07Bun's Node.js Compatibility0:52 min
- 08The Bun Runtime in Action - Building a Web Server7:41 min
- 09Using Bun For Dependency Management4:51 min
- 10Dev Servers, Watch Modes & Building Projects with Bun5:12 min
- 11Using Bun For Automated Testing3:24 min
- 12Configuring Bun via bunfig.toml2:27 min
- 13Example: Building a Utility CLI Tool with Bun3:49 min
- 14Example: Building an Image Optimization Tool with Bun16:57 min
- 15Creating Standalone, Single File Executable Files2:57 min
- 16Node.js Compatibility & "Forcing" The Bun Runtime5:04 min
2Core APIs32 aulas · 2 h e 20 min
- 01Module Introduction0:42 min
- 02Creating a Bun Server4:00 min
- 03Basic Custom Routing & Managing Incoming Requests3:31 min
- 04Serving HTML Files2:58 min
- 05Using Bun's Router Feature4:49 min
- 06Working with Dynamic Routes0:50 min
- 07Bun's File Loaders & Support For Various Input Files8:35 min
- 08File Imports vs Bun's File API2:22 min
- 09Using Bun's File APIs5:50 min
- 10The Glob API4:05 min
- 11Handling & Rendering Markdown with Bun5:57 min
- 12Markdown, Frontmatter & Creating a Blog Site6:53 min
- 13Optimizing Images with Bun (Image API)8:30 min
- 14Example: Image Optimization in a Blog Website5:33 min
- 15Bun's SQLite API6:06 min
- 16Alternative: Importing SQLite Files1:48 min
- 17SQLite: Config & Base Methods1:47 min
- 18Working with (Dynamic) SQLite Queries10:24 min
- 19Managing Environment Variables with Bun3:19 min
- 20Using Bun's SQL Client5:18 min
- 21Understanding SQL Query Execution0:54 min
- 22SQL Transactions1:28 min
- 23Using Bun SQL With Postgres5:32 min
- 24Understanding S3 & Object Stores0:00 min
- 25Bun's S3 Client API6:47 min
- 26Uploading via S3 Client6:06 min
- 27Listing Files & Downloading Files (S3)3:25 min
- 28Presigned URLs (S3)2:41 min
- 29Using fetch() For S3 Access1:19 min
- 30Bun Websockets: Server8:03 min
- 31Bun Websockets: Connecting to the Server7:49 min
- 32Bun Websockets: Client2:15 min
3Complete Demo Application10 aulas · 39 min
- 01Module Introduction2:26 min
- 02Project Structure & The Bun Agent Skill2:45 min
- 03Project Overview: The Frontend (Non Bun)1:32 min
- 04Analyzing the Bun API Server4:23 min
- 05Understanding the Routing Logic (Bun Router)6:49 min
- 06Auth (better-auth) & Helper Functions4:01 min
- 07Using Bun SQLite2:41 min
- 08Image Uploads to R2 via Bun's S3 Client9:36 min
- 09Optimizing Images via Bun Image API2:50 min
- 10Bun-powered Automated Testing2:14 min
Pronto para começar?
Compre este curso no Academind Pro ou tenha todos os cursos com o All Access no Academind Infinite.
Este curso no Academind Pro
US$ 69pagamento único
Impostos incluídos · Garantia de reembolso de 30 dias
- Acesso vitalício a este curso
- Todas as futuras atualizações deste curso
- Materiais para download, código e um certificado
All Access no Academind Infinite
US$ 25por mês
ou
US$ 249US$ 249 por anoEconomize 17%- Todos os cursos, com todos os recursos
- Cursos novos assim que saem
- Seu tutor, com todos os recursos
O All Access também inclui todos os cursos do Academind Pro.