
Build an AI software as a service app to generate baby images from parent photos, with Stripe payments, email delivery, and integration using Astro, Firebase, and serverless GPU deployment.
Outline the architecture of an ai saas app using Astro for a rendered landing page, with Firebase, Stripe, and Mailchimp, enabling job submission, payment, ai image generation, and email delivery.
Read the Astro documentation to build a solid foundation, then I guide you through the basic documentation pages and summarize the key information, with Q&A support.
Explore core concepts of Astro and Astro islands, including why Astro was created and how static server content pairs with client islands built with React or Vue.
Explore tutorials that guide you to build a basic Astro blog website, showing how to create a static site with Astro and integrate advanced topics like content collections and transitions.
Explore file based routing and the public and source folders in Astro, including pages, layouts, components, and props, and compare pre-rendered static site generation with on demand server rendering.
Explore basic dynamic routing in server side mode, using filesystem paths like resources/[resource]/[id], extract parameters on the server, and transfer information during redirects.
Explore api endpoints in ssr or ssg mode, with ssr more useful, handling a request object with headers, data, and http methods. Place under pages/api, post example at /pages/api/example, redirect.
Explore practical deployment strategies for Astro apps, comparing static mode with Cloudflare Pages and SSR mode with Netlify, including bandwidth, ssl, and optional self-hosting via Docker.
Verify Node.js and prepare astro locally with VSCode and astro extension, create the astro project with npm create asteroid latest, and decide on TypeScript use to balance speed and linting.
Open the Astral Project in VSCode, inspect Astro project structure and base page, run npm run dev, and install styling and firebase dependencies including Tailwind and Flowbite, updating tailwind config.
Set up firebase integration in an astro project by creating a firebase folder with client and server files, configuring client and server credentials, and enabling server-side rendering for netlify deployment.
Set up a firebase firestore database, enable authentication, and install the invertase stripe extension to run test-mode payments with webhooks and a signing secret.
Enable photo upload with a form component in the astro folder and two file inputs plus an email field. Track upload progress using a resumable Firebase storage upload.
Implement a server-side API to record new jobs in Firestore, handle form uploads, and start a Stripe checkout tied to a Firebase user, updating status to paid after payment.
Learn how Firebase Functions process Stripe payments, update Firestore job status to paid, and trigger backend AI calls, including setting up, testing, deploying, and debugging functions.
Push the astral project to GitHub and deploy with Netlify in a one-click setup, with automatic builds on each push and optional custom domain via Netlify or Cloudflare.
Explore serverless deployment for AI features by using public APIs like OpenAI or replicate, and leverage Ramport's container-based serverless GPUs for cost-efficient, scalable inference when needed.
Architect the ai service with paid jobs from Firestore. Retrieve input images from Firebase storage, run a dockerized python model via the rum pod api, and generate eight baby pictures.
Demonstrate building an ai service with docker, firebase, Hugging Face, and stable diffusion, enabling gpu options, Colab or Ramport, and prompt-based generation.
Configure cloud build and hugging face tokens, create firebase service accounts, and publish the container to Google Cloud artifact registry, with GitHub triggers and access permissions.
Create an endpoint by configuring artifact registry credentials, add a serverless container template, and deploy a 16 gigabyte gpu endpoint with a 20 gigabyte disk, then verify it's ready.
Update the Astro app to call the prompt endpoint by configuring Firebase functions URL and a bearer API key, then deploy functions and test the AI service.
Outsource email delivery by using an email API service instead of building a custom SMTP server, freeing time to focus on business-impacting tasks.
learn how to set up mailjet for your app, sign up without a credit card, use the free tier with 200 emails per day, and configure DNS and API key.
Explains building a Firebase function that triggers on Firestore document updates to email customers with links to finished images via the mail git API.
This course is good if you already know some programming and want to make something like the AI baby generator quickly, maybe in a weekend. The course will help you work faster on a similar business, startup, or side project. It's also a good project to show off on your resume, because making it is not easy and it uses the newest AI technology in a complex way. We won't just use an AI that's available to everyone; we'll set up our own special AI because there isn't one out there that does what we need for this.
Making your own AI to create pictures and earning money from it is not as hard as you may think. In this course, I'll show you step by step and give you all the code to make a working website with Astro in server-side mode. We'll use Firebase and Stripe for the website's functions and TailwindCSS and Flowbite to make it look nice. The website will be able to take payments and help customers by itself. We'll also set up our own AI to make images using Python and Docker, and we'll use servers that don't need to be on all the time, which can save you money on expensive computer costs if you want your app to be available to lots of people for real.