Lộ trình cho người muốn ship API hoặc tool mà không quản máy chủ. Đọc bài kiến thức, rồi làm lab hub, rồi lab chính thức nếu có.A path for people who want to ship an API or a tool without running a server. Read the knowledge lesson, do the hub lab, then the official lab when one exists.ផ្លូវសម្រាប់អ្នកចង់ ship API ឬ tool ដោយមិនដំណើរការ server។ អានមេរៀនចំណេះដឹង រួចធ្វើ lab hub រួច lab ផ្លូវការ បើមាន។
Phần 1: Worker đầu tiên với C3 và WranglerPart 1: First Worker with C3 and Wranglerផ្នែក 1: Worker ដំបូងជាមួយ C3 និង Wrangler
·
Bài 1/3 Lesson 1/3 Lesson 1/3
Kiến thứcKnowledgeKnowledgeKhoảng 12 phútAbout 12 minAbout 12 min
Worker, C3 và WranglerWorkers, C3, and WranglerWorkers, C3, and Wrangler
C3 tạo project. Wrangler chạy local, đăng nhập và deploy. URL workers.dev là chỗ kiểm tra. Secret không ghi vào file git.C3 creates the project. Wrangler runs it locally, logs you in, and deploys. The workers.dev URL is the checkpoint. Secrets do not go in git.C3 creates the project. Wrangler runs it locally, logs you in, and deploys. The workers.dev URL is the checkpoint. Secrets do not go in git.
Cách hoạt độngHow it worksHow it works
Lệnh `npm create cloudflare` hỏi vài câu rồi tạo `wrangler.jsonc` và `src/`. `wrangler dev` chạy server local. `wrangler deploy` đưa code lên mạng Cloudflare. `wrangler secret put` lưu secret trên account Cloudflare, không nằm trong file.`npm create cloudflare` asks a few questions, then creates `wrangler.jsonc` and `src/`. `wrangler dev` runs a local server. `wrangler deploy` puts the code on Cloudflare’s network. `wrangler secret put` stores the secret on the Cloudflare account, not in a file.`npm create cloudflare` asks a few questions, then creates `wrangler.jsonc` and `src/`. `wrangler dev` runs a local server. `wrangler deploy` puts the code on Cloudflare’s network. `wrangler secret put` stores the secret on the Cloudflare account, not in a file.
Kiến trúcArchitectureArchitecture
Trình duyệt hoặc app gọi URL workers.dev. Cloudflare chạy Worker gần người dùng. Worker đọc biến và secret từ config. Docs nói đừng để thông tin nhạy cảm trong `vars` dạng chữ thường. Hãy dùng secret.A browser or app calls the workers.dev URL. Cloudflare runs the Worker near the user. The Worker reads variables and secrets from config. The docs say not to put sensitive information in plaintext `vars`. Use a secret.A browser or app calls the workers.dev URL. Cloudflare runs the Worker near the user. The Worker reads variables and secrets from config. The docs say not to put sensitive information in plaintext `vars`. Use a secret.
Khi nào dùngWhen to use itWhen to use it
Dùng Worker cho API, webhook, form handler, hoặc bất kỳ logic nào không gắn với một site Git có sẵn.Use a Worker for an API, a webhook, a form handler, or any logic that is not tied to an existing Git site.Use a Worker for an API, a webhook, a form handler, or any logic that is not tied to an existing Git site.
Khi nào không dùngWhen not to use itWhen not to use it
Đừng dùng Worker chỉ để host file tĩnh của một framework đã có trên Git. Việc đó là Pages. Đừng nhét API key vào biến thường trong file config.Do not use a Worker only to host the static files of a framework that already lives in Git. That job is Pages. Do not put an API key in a plaintext variable in the config file.Do not use a Worker only to host the static files of a framework that already lives in Git. That job is Pages. Do not put an API key in a plaintext variable in the config file.
Gói và giới hạnPlans and limitsPlans and limits
Trang cài Wrangler (2026-11-15) nói CLI chạy trên bản Node Current, Active hoặc Maintenance. Một learning path cũ vẫn ghi một số phiên bản thấp hơn. Đừng chép số phiên bản cũ vào checklist. Free: 100.000 request/ngày, 10 ms CPU. Subrequest: 50 ra ngoài mỗi lần chạy, và 1.000 tới dịch vụ Cloudflare. Nguồn: https://developers.cloudflare.com/workers/wrangler/install-and-update/ https://developers.cloudflare.com/workers/platform/limits/The Wrangler install page (2026-11-15) says the CLI runs on Current, Active, or Maintenance Node.js releases. An older learning path still names a lower release. Do not copy an old version number into the checklist. Free: 100,000 requests per day, 10 ms of CPU. Subrequests: 50 external per invocation, and 1,000 to Cloudflare services. Sources: https://developers.cloudflare.com/workers/wrangler/install-and-update/ https://developers.cloudflare.com/workers/platform/limits/The Wrangler install page (2026-11-15) says the CLI runs on Current, Active, or Maintenance Node.js releases. An older learning path still names a lower release. Do not copy an old version number into the checklist. Free: 100,000 requests per day, 10 ms of CPU. Subrequests: 50 external per invocation, and 1,000 to Cloudflare services. Sources: https://developers.cloudflare.com/workers/wrangler/install-and-update/ https://developers.cloudflare.com/workers/platform/limits/
Không phải báo giá. Đối chiếu docs và dashboard. Kiểm tra lần cuối: 2026-11-11.Not a price quote. Check the docs and the dashboard. Last checked: 2026-11-11.Not a price quote. Check the docs and the dashboard. Last checked: 2026-11-11.
Thuật ngữGlossaryGlossary
C3C3C3i
Công cụ `npm create cloudflare`. Nó dựng project Worker mới.The `npm create cloudflare` tool. It scaffolds a new Worker project.The `npm create cloudflare` tool. It scaffolds a new Worker project.
wrangler.jsoncwrangler.jsoncwrangler.jsonci
File cấu hình: tên Worker, binding, và biến không bí mật.The config file: the Worker name, bindings, and non-secret variables.The config file: the Worker name, bindings, and non-secret variables.
Lab nằm ở bài riêng. Đọc ý chính trước, rồi mở lab.Labs live on their own pages. Read the main ideas, then open a lab.Labs live on their own pages. Read the main ideas, then open a lab.
Ví dụ chính thức từ Cloudflare Resources — gợi ý theo chủ đề bài học trong lộ trình này.Official examples from Cloudflare Resources — matched to this lesson within this path.Official examples from Cloudflare Resources — matched to this lesson within this path.
Trong phần 2, Kristian mở rộng trên môi trường hiện có được xây dựng trong phần 1, bằng cách cho bạn thấy cách tích hợp các mô hình AI mới và giới thiệu các thông số mới cho phép bạn tùy chỉnh cách images được tạo ra.
In part 2, Kristian expands upon the existing environment built in part 1, by showing you how to integrate new AI models and introduce new parameters that allow you to customize how images are generated.
នៅក្នុងផ្នែកទី 2 Kristian ពង្រីកលើបរិស្ថានដែលមានស្រាប់ដែលបានសាងសង់ក្នុងផ្នែកទី 1 ដោយបង្ហាញអ្នកពីរបៀបបញ្ចូលគំរូ AI ថ្មី និងណែនាំប៉ារ៉ាម៉ែត្រថ្មីដែលអនុញ្ញាតឱ្យអ្នកប្ដូរតាមបំណងពីរបៀបដែល images ត្រូវបានបង្កើត។
Học xong hoặc muốn đổi hướng?Finished or want a different path?Finished or want a different path?
Ba lộ trình độc lập — mỗi lộ trình chỉ gồm bài học và tài liệu trong phạm vi đó. Chọn lộ trình khác khi sẵn sàng, không cần học song song.Three independent paths — each includes only lessons and materials for that scope. Switch when you are ready; no need to study paths in parallel.Three independent paths — each includes only lessons and materials for that scope. Switch when you are ready; no need to study paths in parallel.