Skip to main content
grasp.study
About
Explore
Pricing
Log in
Try it for free
Back to course
👋
Welcome to a Grasp lesson
Create a free account
to keep studying and create your own study path.
Cloudflare Full-Stack Development
·
Module 4
بناء واجهات برمجة التطبيقات (APIs) باستخدام Hono
1
Deploying a Hono App with Cloudflare Workers
Initialize a new Cloudflare Worker project using Wrangler and deploy a basic Hono application.
2
Hono: Routing HTTP Methods
Define routes for different HTTP methods (GET, POST, PUT, DELETE) in Hono.
3
Handling Request Data
Extract and handle route parameters, query parameters, and JSON request bodies from incoming requests.
4
Custom Middleware in Hono
Create custom middleware in Hono to perform tasks like logging, authentication, or data transformation.
5
Centralized Error Handling with Hono's `onError`
Implement centralized error handling using Hono's `onError` method to return structured JSON error responses.
6
Environment Variables and Secrets with Wrangler
Manage environment variables and secrets for different environments (dev, production) using `.dev.vars` and Wrangler secrets.
Previous module
البرمجة غير المتزامنة المتقدمة في TypeScript
Next module
التحقق من صحة البيانات باستخدام Zod