{"id":607790,"date":"2025-12-03T07:30:00","date_gmt":"2025-12-03T12:30:00","guid":{"rendered":"https:\/\/towardsdatascience.com\/?p=607790"},"modified":"2025-12-06T15:16:29","modified_gmt":"2025-12-06T20:16:29","slug":"how-to-code-your-own-website-with-ai","status":"publish","type":"post","link":"https:\/\/towardsdatascience.com\/how-to-code-your-own-website-with-ai\/","title":{"rendered":"How to Code Your Own Website with AI"},"content":{"rendered":"\n
I then thought about how easy it is to program up my own website using an agentic coding tool like Claude Code or Cursor. <\/p>\n\n\n\n Why am I spending a lot of time drag and dropping components, and still not getting exactly the design I want, when I can simply prompt Claude Code to do exactly that in just 1 minute?<\/p>\n<\/blockquote>\n\n\n\n That’s when I decided to make the switch from hosted WordPress to managing my own website, deployed in Vercel (for free). The main point of this article is to show you how to do this and why you don’t really need any programming experience to do it.<\/p>\n\n\n\n You can find my website, which I designed, in this article here.<\/a><\/span><\/p>\n\n\n\n The main reason you should start coding your own website, instead of using a drag-and-drop editor like WordPress or Webflow, is:<\/p>\n\n\n\n Because it’s faster, you can also iterate on your website designs more quickly, which is super useful when you try to make the best website possible.<\/p>\n\n\n\n Quick iteration speed is the key to quick progress<\/p>\n<\/blockquote>\n\n\n\n Of course, there are some arguments the other way around, for example, that WordPress has a lot of integrations that can be useful. However, for me, the pros far outweigh the cons. <\/p>\n\n\n\n Being able to update my website by simply inputting one prompt, such as:<\/p>\n\n\n\n Make all the buttons on the website fade in on hover<\/p>\n<\/blockquote>\n\n\n\n This literally updates my entire website in around 1 minute (including Claude Code updating the code and deploying to Vercel). Doing this same action in WordPress would probably take me at least 30 minutes.<\/p>\n\n\n\n Now imagine you have to do this change several times a week. Whenever adding new content to your website, or when you realize you want to change something. Changing it directly in code with coding agents is simply far more efficient.<\/p>\n\n\n\n Hopefully, you’re convinced why you should start coding your own website (or let Claude code it for you), instead of using a drag-and-drop editor. Now, let’s move into how you can do it. <\/p>\n\n\n\n The main secret here is that you don’t really have to do that much yourself, considering how good the coding agents are at creating websites. I created the website from my previous WordPress-hosted website.<\/p>\n\n\n\n I started off by prompting Claude Code with the following, where eivindkjosbakken.com<\/em> was my WordPress site:<\/p>\n\n\n\n Claude’s code then created a near-exact replica of my previous website, which I could now run locally. I checked the designs and made sure everything was okay, which it was for the most part, except for a few things, which I’ll cover in the next section.<\/p>\n\n\n\n I then moved to hosting the website. I use Vercel since it offers free deployments of your website, and it’s simple to use and can be fully managed from the terminal. Having it managed from the terminal is super nice, so Claude can take care of the deployments and other issues with Vercel.<\/p>\n\n\n\n However, when first deploying, I had to create a project on vercel.com<\/em> and connect my codebase to that project. You can ask any LLM on how to do this, and they will give you an accurate step-by-step guide to connecting your code to Vercel. Vercel also offers you 100 free deploys per day, which should be more than enough. <\/p>\n\n\n\n After connecting to Vercel, everything was good to go, and I could access my website through the web.<\/p>\n\n\n\n After copying my WordPress website, I also discovered some updates I wanted to make to my website. I, for example, wanted:<\/p>\n\n\n\n These changes were quick to make, and I simply had to prompt Claude with a description of my change (i.e., make the articles card highlighted on the over<\/em>), and it made the change in less than one minute.<\/span> Making this change with a drag-and-drop editor would likely take a lot longer.<\/p>\n\n\n\n Now, only your imagination can stop you from updating your website, and you can, in reality, make any change and quickly iterate on designs by simply prompting your coding agent.<\/p>\n\n\n\n Claude mostly one-shot the recreation of my old WordPress website into code, just from the URL of my website. However, there were some issues I had to resolve, as you can see listed below:<\/p>\n\n\n\n <\/p>\n\n\n\n For the emails, I used EmailJS<\/a> to have the option of sending emails from my website. This service is free and simple to set up after asking for a step-by-step guide from your coding agent.<\/p>\n\n\n\n For the image copying, I simply downloaded the images locally, put them into the code repository, and told Claude’s code where it could find the images. Claude then copied the images into a specific image folder, so they could be hosted on the website.<\/p>\n\n\n\n With the social links, I simply had to prompt Claude a few times, with a screenshot of what the social links looked like (at one point, they looked very grainy, for example), and Claude would solve the issue with three to four prompts and feedback.<\/p>\n\n\n\n For the mailing list, I decided to move to MailerLite<\/a>, which offers embedded forms you can use on your website to have people subscribe with their email. You can simply give the embedded form to your coding agent, which will embed it into your website.<\/p>\n\n\n\n Moving domains was the most time-consuming task. I had purchased my previous domain in WordPress, which made the process a bit trickier. However, I made Gemini 3 provide me a step-by-step tutorial, which worked well, and I transferred domains to NameCheap, where I have full control over the domain myself. <\/p>\n\n\n\n In this article, I have discussed how you can move your website from a drag-and-drop editor like WordPress or Webflow to your own managed website. This process is relatively simple using Coding agents and Vercel, which then provides you with a lot more control over your own website. Additionally, it allows you to iterate more quickly on your website and makes it simple to update your website. <\/p>\n\n\n\n I believe we are moving away from drag-and-drop editors altogether, when we see how well today’s coding agents work, and with the fact that you don’t really need coding experience anymore, to perform simple programming like updating the design of a website.<\/p>\n\n\n\n \ud83d\udc49 My Free Resources<\/strong><\/p>\n\n\n\n \ud83d\ude80<\/strong> 10x Your Engineering with LLMs (Free 3-Day Email Course)<\/a><\/p>\n\n\n\n \ud83d\udcda Get my free Vision Language Models ebook<\/a><\/p>\n\n\n\n \ud83d\udcbb My webinar on Vision Language Models<\/a><\/p>\n\n\n\n \ud83d\udc49 Find me on socials:<\/strong><\/p>\n\n\n\n \ud83d\udce9 Subscribe to my newsletter<\/a><\/p>\n\n\n\n \ud83e\uddd1\u200d\ud83d\udcbb Get in touch<\/a><\/p>\n\n\n\n \ud83d\udd17 LinkedIn<\/a><\/p>\n\n\n\n \ud83d\udc26 X \/ Twitter<\/a><\/p>\n\n\n\n\n
\n

Why code your own website<\/h2>\n\n\n\n
\n

\n
\n
Claude to code your own website<\/h2>\n\n\n\n
Creating the website<\/h3>\n\n\n\n
\n\n\n\nGiven my website here: eivindkjosbakken.com, copy this website exactly, \nby using React. Create a GitHub repository and push the code there<\/code><\/pre>\n\n\n\nHosting the website<\/h3>\n\n\n\n
Updating the website<\/h3>\n\n\n\n
\n

Challenges I had to resolve<\/h2>\n\n\n\n
\n
Conclusion<\/h2>\n\n\n\n