What is vibe coding? How to build a website with AI

Vibe coding is a way of making software by describing what you want to an AI, letting it write the code, then running the result and asking for changes. You focus on what you can see working rather than on each line. Andrej Karpathy popularised the term in early 2025.
It means someone without a programming background can have a working website within hours. But there is a gap few tutorials mention: code that runs on your computer is not yet a website on the internet.
The steps of building a website with AI
- Describe it clearly. What the site is for, which pages it has, who uses it, whether it needs logins or payments.
- Generate the code. The AI creates the project structure and a first interface.
- Run it and refine. Open it on your machine and describe whatever is wrong. This loop takes the most time.
- Save it to GitHub. You get a history to return to when the AI breaks something that worked.
- Deploy it. Put the site on a real server, following how to deploy a vibe coded website.
Which AI website tools should you choose?
The tools fall into three groups, which differ in how much you touch the code:
| Group | Examples | Best for |
|---|---|---|
| Chatbots | ChatGPT, Claude, Gemini | Small sites, copying code into files |
| App builders | Lovable, Bolt.new, v0 | Non-coders who want to see an interface now |
| AI code editors | Cursor, Windsurf, Claude Code | Bigger projects where you want control |
Building with ChatGPT is a fine start but you manage the files yourself, as covered in putting ChatGPT code on a website. App builders are faster, though their projects often need a small change before they run elsewhere. See deploying Lovable, Bolt, v0 and Cursor projects.
Prompting tips for better results
- Break it down. Ask for one feature at a time, not a whole site in one prompt.
- Name the technology. For example "use Next.js and PostgreSQL". If you plan to deploy, say so.
- Paste errors word for word. A full error message gets a far better fix than "the site does not work".
- Commit after every working step. When the AI breaks something, you simply go back.
- Ask for an
.env.examplefile. It tells the deployment platform which environment variables the site needs.
The limits you should know
Vibe coding is not magic. A few points need care, especially once real people use your site:
- Security. AI can leave API keys in browser code or forget access checks. If your site has logins or payments, ask someone experienced to review it.
- Maintenance. The more patches pile up, the easier it is for the AI to break older parts. Ask it to write tests for what matters most.
- Data. Use a real database rather than files or memory, and make sure there are backups.
- Working locally does not mean working on a server. Windows and macOS ignore upper and lower case in file names, Linux does not, so this error is very common when deploying.
Where does the website go when it is finished?
This is where many people get stuck, because servers, domains and build errors are another world. You have two options: rent a VPS and set everything up, or use a deployment platform that does that part for you. How to choose cheap hosting compares them.
VibeVN is made for this situation: connect GitHub, and it reads your code, builds it, runs it and gives you an HTTPS address. When a build fails, AI reads the logs and explains the cause in plain language.
Frequently asked questions
Do you need to know how to code?
Not for a simple site. Understanding files, folders and how to read an error message will still take you much further.
Can a website built with AI rank on Google?
Yes. Google judges content and experience, not who wrote the code. If SEO matters, use a framework with server rendering such as Next.js, because content already in the HTML is easier to read.
Which tool is best?
There is no single answer. Beginners can start with an app builder and move to Cursor or Claude Code as the project grows. As long as you have the source code, you can put it online.


