メインコンテンツへスキップ
Academind
すべてのコース

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セクション · 58件のレクチャー
  • 合計4 時間 4 分

このコースについて

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.

学べること

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.

  1. 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.

  2. 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.

  3. 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.

  4. 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.

  5. 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.

  6. 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.

前提条件

  • Basic JavaScript knowledge is required.

  • Node.js experience is helpful but not required.

  • No prior Bun experience is required.

このコースの対象者

  • 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.

カリキュラム

始める前に、このコースの構成とペースをご確認ください。

  1. 1Essentials16件のレクチャー · 1 時間 6 分
    1. 01Welcome To The Course0:55分
    2. 02What Is Bun? And Why Would You Use It?4:37分
    3. 03Installing Bun & About This Course1:26分
    4. 04Running TypeScript Code1:15分
    5. 05Bun For Package & Project Management4:07分
    6. 06Bun AI Agent Skill0:00分
    7. 07Bun's Node.js Compatibility0:52分
    8. 08The Bun Runtime in Action - Building a Web Server7:41分
    9. 09Using Bun For Dependency Management4:51分
    10. 10Dev Servers, Watch Modes & Building Projects with Bun5:12分
    11. 11Using Bun For Automated Testing3:24分
    12. 12Configuring Bun via bunfig.toml2:27分
    13. 13Example: Building a Utility CLI Tool with Bun3:49分
    14. 14Example: Building an Image Optimization Tool with Bun16:57分
    15. 15Creating Standalone, Single File Executable Files2:57分
    16. 16Node.js Compatibility & "Forcing" The Bun Runtime5:04分
  2. 2Core APIs32件のレクチャー · 2 時間 20 分
    1. 01Module Introduction0:42分
    2. 02Creating a Bun Server4:00分
    3. 03Basic Custom Routing & Managing Incoming Requests3:31分
    4. 04Serving HTML Files2:58分
    5. 05Using Bun's Router Feature4:49分
    6. 06Working with Dynamic Routes0:50分
    7. 07Bun's File Loaders & Support For Various Input Files8:35分
    8. 08File Imports vs Bun's File API2:22分
    9. 09Using Bun's File APIs5:50分
    10. 10The Glob API4:05分
    11. 11Handling & Rendering Markdown with Bun5:57分
    12. 12Markdown, Frontmatter & Creating a Blog Site6:53分
    13. 13Optimizing Images with Bun (Image API)8:30分
    14. 14Example: Image Optimization in a Blog Website5:33分
    15. 15Bun's SQLite API6:06分
    16. 16Alternative: Importing SQLite Files1:48分
    17. 17SQLite: Config & Base Methods1:47分
    18. 18Working with (Dynamic) SQLite Queries10:24分
    19. 19Managing Environment Variables with Bun3:19分
    20. 20Using Bun's SQL Client5:18分
    21. 21Understanding SQL Query Execution0:54分
    22. 22SQL Transactions1:28分
    23. 23Using Bun SQL With Postgres5:32分
    24. 24Understanding S3 & Object Stores0:00分
    25. 25Bun's S3 Client API6:47分
    26. 26Uploading via S3 Client6:06分
    27. 27Listing Files & Downloading Files (S3)3:25分
    28. 28Presigned URLs (S3)2:41分
    29. 29Using fetch() For S3 Access1:19分
    30. 30Bun Websockets: Server8:03分
    31. 31Bun Websockets: Connecting to the Server7:49分
    32. 32Bun Websockets: Client2:15分
  3. 3Complete Demo Application10件のレクチャー · 39 分
    1. 01Module Introduction2:26分
    2. 02Project Structure & The Bun Agent Skill2:45分
    3. 03Project Overview: The Frontend (Non Bun)1:32分
    4. 04Analyzing the Bun API Server4:23分
    5. 05Understanding the Routing Logic (Bun Router)6:49分
    6. 06Auth (better-auth) & Helper Functions4:01分
    7. 07Using Bun SQLite2:41分
    8. 08Image Uploads to R2 via Bun's S3 Client9:36分
    9. 09Optimizing Images via Bun Image API2:50分
    10. 10Bun-powered Automated Testing2:14分

始める準備はできましたか?

このコースをAcademind Proで購入するか、Academind InfiniteのAll Accessですべてのコースを利用しましょう。

ブラックフライデー: All Access 1年分が $249 $249 · までの限定価格セール価格で購入する
  • Academind Proでこのコースを購入

    $69買い切り

    税込 · 30日間返金保証

    • このコースへの無期限アクセス
    • このコースの今後のアップデートすべて
    • ダウンロード資料、コード、修了証
    Bunを購入
  • Academind InfiniteのAll Access

    $25/月

    または$249 $249 /年17%お得

    • すべてのコースを、すべての機能付きで
    • 新しいコースも随時追加
    • チューター(すべての機能)
    All Accessを始める

All Accessには、Academind Proのすべてのコースも含まれます。

Academind ProとAcademind Infinite

コースもログインもそれぞれ別の、2つのプラットフォームです。

Academind Pro

pro.academind.comにある、これまでのコースプラットフォームです。Proのサブスクリプションとご購入のコースは、引き続きProでご利用いただけます。

Academind Proにログイン

Academind Infinite

AIファーストの新しいプラットフォームです。ProメンバーはProのアカウントでログインできます。Pro All AccessにはInfiniteも含まれ、すべてのコースを受講できます。

Academind Infiniteにログイン

Proのアカウントをお持ちか、Proでコースをご購入済みですか?

Infiniteに移ったのは、Proのコースの一部だけです。お持ちのコースを選んで、Infiniteでのページを開いてください。