A website for sharing videos about AI tools, web development, DevOps, and database systems. Built with Astro and deployed on Cloudflare Pages.
- Video Integration: Fetches and displays YouTube videos using the YouTube Data API
- Newsletter: Email newsletter subscription via Resend
- Dark Mode: Tailwind CSS-powered dark mode support
- Progressive Loading: Optimized video loading with thumbnails
- Video Modal: Embedded YouTube player with modal interface
- Content Requests: Form for viewers to request video topics
- Framework: Astro - Content-focused web framework
- Styling: Tailwind CSS
- Deployment: Cloudflare Pages with Workers
- Email: Resend for newsletter functionality
- Video: YouTube Data API v3
/
├── public/ # Static assets
├── src/
│ ├── assets/ # Images and other assets
│ ├── components/ # Astro components
│ ├── content/ # Content collections (videos)
│ ├── layouts/ # Page layouts
│ └── pages/ # Routes (index.astro)
├── astro.config.mjs # Astro configuration
├── tailwind.config.mjs
└── package.json
- Node.js (v18 or higher)
- YouTube API key (for fetching video data)
- Resend API key (for newsletter functionality)
npm installCreate a .dev.vars file in the root directory (for local development):
YOUTUBE_API_KEY=your_youtube_api_key
RESEND_API_KEY=your_resend_api_key
For production deployment, set these as environment variables in your Cloudflare Pages project.
Start the development server:
npm run devThe site will be available at http://localhost:4321
Build for production:
npm run buildPreview production build locally:
npm run previewDeploy to Cloudflare:
npm run deploy| Command | Action |
|---|---|
npm install |
Install dependencies |
npm run dev |
Start local dev server at localhost:4321 |
npm run build |
Build production site to ./dist/ |
npm run preview |
Build and preview with Wrangler dev server |
npm run deploy |
Build and deploy to Cloudflare Pages |
npm run cf-typegen |
Generate TypeScript types for Cloudflare |
BuildAtScale is a platform for learning in public - sharing real experiments, failures, and discoveries in AI-assisted development, web development, DevOps, and modern software engineering.