Build a Full-Stack Application using Astro on Cloudflare Workers and Cloudflare Pages

Опубликовано: 20 Ноябрь 2024
на канале: Cloudflare Developers
520
27

With Cloudflare, you can easily deploy your Astro application globally. In this video, Kristian Freeman builds a full-stack application using Astro. He introduces an API endpoint using Astro bindings and integrates Cloudflare KV into his application stack.

Create an account on Cloudflare today for free: https://dash.cloudflare.com/sign-up

Tools mentioned:
Cloudflare Astro docs: https://developers.cloudflare.com/pag...
Astro Endpoints: https://docs.astro.build/en/guides/en...

Commands mentioned:
npm create cloudflare@latest -- my-astro-app --framework=astro
npm run astro add cloudflare
npx wrangler@latest kv:namespace create MY_TEST_KV
npx wrangler@latest kv:key put test "Hello YouTube" --binding MY_TEST_KV

Chapters:
00:00 Intro
1:00 Initialize Environment
3:15 Integrate Cloudflare
5:30 Adding an API Endpoint
7:00 Integrating Cloudflare KV Namespace
8:15 Astro Bindings
10:25 CF Pages Deployment URLs
11:50 Testing the API Endpoint
12:02 Conclusion


#cloudflare #cloudflareworkers #developer #astro #astrojs #coding #programming #cloud #computing #tutorial #guide #javascript #typescript #framework