8 min read
How to put an AI-built app online
Getting code from ChatGPT, Claude, Gemini or Copilot is the easy part. Getting it running on the internet, on your own domain, without exposing your passwords and keys, is where most people get stuck. This guide walks through it in plain language.
1. Work out what kind of project you have
- Only HTML, CSS and JavaScript files, no server: a static site. The simplest to host.
- A framework like Next.js, React, Vue or Svelte: a front-end app, often with a small server part.
- A Python (Flask, FastAPI, Django) or Node (Express) server: a back-end that needs to keep running.
- Anything that stores data (users, orders, posts) also needs a database.
Prompt for your AI tool
Look at my project and tell me in plain language: is it a static site, a front-end app, or a back-end server? Does it need a database? List every file that holds a password, API key or secret, and every setting it needs to run.
2. Get your secrets out of the code
AI tools often paste API keys and passwords straight into the code. Before anything goes online, move them into environment variables: settings your host keeps separately from the code. If a key was ever shared or committed, create a new one and delete the old.
Prompt for your AI tool
Move every API key, password and secret in my project into environment variables. Create a .env.example file listing their names without values, make sure .env is in .gitignore, and tell me which keys I should replace with new ones.
3. Put the code on GitHub
Most hosts deploy straight from a GitHub repository, and every change you push goes live automatically. Make the repository private if the code isn't meant to be public, and double-check no .env file was uploaded.
4. Choose where it runs
- Static sites and front-end apps: Vercel, Netlify or Cloudflare Pages. All have free tiers for small projects.
- Back-end servers: Render, Railway or Fly.io. Expect a small monthly cost for anything that must stay awake.
- Databases: Supabase or Neon for Postgres. Turn on backups from day one.
- Create these accounts in your own name, so you always own your project.
5. Connect your domain and HTTPS
Buy a domain from any registrar, then add the DNS records your host tells you to. The hosts above issue the HTTPS certificate for you, usually within minutes. Point both yourdomain.com and www.yourdomain.com at the site.
6. Check it before you share it
- Sign up, sign in, reset a password and complete a payment on the live site, not just on your laptop.
- Run a free Vern check on the live address to catch leaked keys and missing protections.
- Set up error alerts and an uptime check so you hear about problems before your users do.
When to get help
If you're not sure what kind of project you have, it uses a database or payments, or you've been stuck for more than an evening, it's usually faster to hand it over. Vern Launch sets everything up in accounts you own, for a fixed price agreed before we start.