Lộ trình đang học Current learning path Current learning path

Developer Platform Developer Platform Developer Platform

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 ផ្លូវការ បើមាន។

Về trang lộ trình Track home Track home

Phần 1: Worker đầu tiên với C3 và Wrangler Part 1: First Worker with C3 and Wrangler ផ្នែក 1: Worker ដំបូងជាមួយ C3 និង Wrangler · Bài 1/3 Lesson 1/3 Lesson 1/3

Kiến thức Knowledge Knowledge Khoảng 12 phút About 12 min About 12 min

Worker, C3 và Wrangler Workers, C3, and Wrangler Workers, C3, and Wrangler

Nên đọc trước: Read first: Read first: Kiến trúc Developer Platform Developer Platform architecture Developer Platform architecture

Ý chính Main ideas Main ideas

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 động How it works How 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úc Architecture Architecture

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ùng When to use it When 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ùng When not to use it When 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ạn Plans and limits Plans 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ữ Glossary Glossary

  • C3 C3 C3

    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.jsonc wrangler.jsonc wrangler.jsonc

    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.

Mở bảng thuật ngữ → Open the glossary → Open the glossary →

Làm lab Do the lab Do the lab

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ụ triển khai (Cloudflare Resources) Deployment examples (Cloudflare Resources) Deployment examples (Cloudflare Resources)

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.

Tutorial Tutorial Tutorial Developer Platform Developer Platform Developer Platform

Thêm React form với Formspree Add a React form with Formspree បន្ថែមទម្រង់ប្រតិកម្មជាមួយ Formspree

Tìm hiểu cách thêm React form với Formspree, một dịch vụ back-end xử lý và lưu trữ form.

Learn how to add a React form with Formspree, a back-end service that handles form processing and storage.

ស្វែងយល់ពីរបៀបបន្ថែមទម្រង់ React ជាមួយ Formspree ដែលជាសេវាកម្មផ្នែកខាងក្រោយដែលគ្រប់គ្រងដំណើរការ និងការផ្ទុកទម្រង់។

Tìm hiểu thêm Learn more ស្វែងយល់បន្ថែម
Tutorial Tutorial Tutorial Developer Platform Developer Platform Developer Platform

Thêm một site Add a site បន្ថែមគេហទំព័រ

Hướng dẫn này sử dụng Pulumi Infrastructure as Code (IaC) để làm quen với vòng đời quản lý tài nguyên.

This tutorial uses Pulumi infrastructure as code (IaC) to familiarize yourself with the resource management lifecycle.

ការបង្រៀននេះប្រើហេដ្ឋារចនាសម្ព័ន្ធ Pulumi ជាកូដ (IaC) ដើម្បីស្គាល់ខ្លួនអ្នកជាមួយនឹងវដ្តជីវិតនៃការគ្រប់គ្រងធនធាន។

Tìm hiểu thêm Learn more ស្វែងយល់បន្ថែម
Tutorial Tutorial Tutorial Developer Platform Developer Platform Developer Platform

Thêm HTML form với Formspree Add an HTML form with Formspree បន្ថែម HTML form ជាមួយ Formspree

Học cách thêm HTML form với Formspree — dịch vụ back-end xử lý và lưu dữ liệu form.

Learn how to add an HTML form with Formspree, a back-end service that handles form processing and storage.

រៀនរបៀបបន្ថែម HTML form ជាមួយ Formspree — សេវា back-end ដែលដំណើរការ និងរក្សាទុកទិន្នន័យ form។

Tìm hiểu thêm Learn more ស្វែងយល់បន្ថែម
Tutorial Tutorial Tutorial Developer Platform Developer Platform Developer Platform

Thêm mô hình AI mới vào sân chơi của bạn (Phần 2) Add New AI Models to your Playground (Part 2) បន្ថែមម៉ូដែល AI ថ្មីទៅក្នុងសួនកុមាររបស់អ្នក (ផ្នែកទី 2)

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 ត្រូវបានបង្កើត។

Tìm hiểu thêm Learn more ស្វែងយល់បន្ថែម

Xem thêm ví dụ trong lộ trình → More examples in this path → More examples in this path →

Tài liệu Cloudflare Developers Cloudflare Developer docs Cloudflare Developer docs

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.

Chưa chắc — làm bài chọn lộ trình Not sure — use the path selector Not sure — use the path selector · So sánh cả ba lộ trình Compare all three paths Compare all three paths