Creator Tools
How to Build a Website Using Vibe Coding with ChatGPT and Cloudflare (No GitHub Required)
You no longer need to be an experienced programmer or use GitHub to start building a website.
With ChatGPT and Cloudflare, you can create a website by describing what you want, generating the code with AI and uploading your finished website directly to Cloudflare.
This approach is known as vibe coding.
Instead of writing every line of code yourself, you explain your idea to ChatGPT, review the generated code, test it and make improvements until your website works the way you want.
Here is how to get started.
1. Understand the tools
You only need two main platforms to get started.
- ChatGPT: Helps you plan, design, generate website code and fix errors.
- Cloudflare Pages: Hosts your website and makes it accessible online.
You can use these tools without setting up a GitHub account.
2. Choose what you want to build
Start with one clear website idea.
For example:
- A personal portfolio.
- A business website.
- A football news website.
- A blog.
- An online landing page.
Explain your idea to ChatGPT.
For example:
"I want to create a modern football news website with a professional homepage, navigation menu, article cards, search functionality and a mobile-friendly design."
ChatGPT can help you plan the website and decide which pages and features you need.
3. Generate your website with ChatGPT
Now ask ChatGPT to build your website.
For beginners, HTML, CSS and JavaScript are good starting technologies.
Ask ChatGPT to:
- Create the homepage.
- Design the navigation menu.
- Add article sections.
- Make the website responsive.
- Add working buttons and search functionality.
- Organise the files properly.
You can build the website gradually instead of requesting everything at once.
Test each feature and share any errors with ChatGPT so it can help fix them.
4. Prepare your website files
Once ChatGPT generates the website, make sure all the necessary files are ready.
A simple website might contain:
- "index.html" — Main website page.
- "style.css" — Website design and styling.
- "script.js" — Interactive features.
- "images" — Images used on the website.
Keep the files together in one project folder.
For a basic HTML website, you can upload these files directly. Framework-based projects such as React may need to be built first so you can upload their finished output.
5. Upload your website directly to Cloudflare
This is where Cloudflare Pages Direct Upload comes in.
You don't need GitHub.
Follow these steps:
1. Visit https://dash.cloudflare.com.
2. Create an account or sign in.
3. Open Workers & Pages.
4. Select Create application.
5. Choose Pages and the direct upload or drag-and-drop option.
6. Enter your website project name.
7. Upload your website folder or ZIP file.
8. Select Deploy.
Cloudflare will upload your website and publish it online.
Once deployment is complete, you will receive a free website address ending in "pages.dev".
You can now open your website in a browser and share it with others.
6. Make changes using ChatGPT
Your first website doesn't have to be perfect.
You can return to ChatGPT and request improvements.
For example:
- Make the homepage more professional.
- Improve the mobile design.
- Add a contact page.
- Change the website colours.
- Fix a broken button.
- Add a search feature.
After making changes, update your website files and upload a new deployment through Cloudflare.
Important: Direct Upload does not automatically publish changes whenever ChatGPT generates new code. You need to upload the updated files again.
7. What if you want a more advanced website?
Cloudflare provides additional services for developers who want to build more than a simple website.
You can explore:
- Cloudflare Workers for backend functionality.
- D1 for database storage.
- R2 for storing images and files.
- Authentication solutions for user accounts.
- APIs for connecting different services.
These tools can help you build more advanced applications, including platforms with user accounts, dashboards and content publishing.
Advanced backend features require additional setup, testing and security considerations.
8. Copy this prompt to start building
You can use this prompt in ChatGPT:
"Act as an experienced web developer. Help me build a professional, responsive website using HTML, CSS and JavaScript. Generate the complete project files, explain what each file does, and guide me through testing the website. I don't want to use GitHub. Prepare the project for Cloudflare Pages Direct Upload, including the correct folder structure and deployment instructions."