A 2 hour directory build with AI 🤖
For those who are already building with AI or thinking about getting started, Claude 3.7 Sonnet just dropped yesterday and its available in Windsurf.
I tested it out with a simple starter prompt and a bit of back and forth messaging. At first mostly just me hitting accept for the coding to continue, but then later on a bit of debugging and minor design corrections - until I had the site ready for deployment.
In total it took me around 2 hours and I'm pretty stoked with the result.
Here is the starter prompt:
"Build me an expungement attorney directory website with listing pages for the 50 biggest cities in the US and 100 listings in total (2 listings per city page). I need it in a slick and modern design and it needs to be super optimised for SEO. Let's use Astro. I need a complete build with descriptions and sourced images and everything. You are allowed to make up fake listings. When you create and write to the files try to do it step by step in small steps so you dont get stuck. Go!"
And here is the outcome:
https://expungement-attorneys-git-main-kasperpollas-projects.vercel.app/
Not sharing this to prove that it's super easy. There is definitely a learning curve, especially if you are new to coding and development, but damn - these AI models are getting better by the minute.
Takeaways:
Specifying the framework helps
I was surprised with the Windsurf agents ability to make decisions about site structure, pages, UI, content and enrichment features
The agent did source actual images from unsplash but I had to go and change some of them
A bit into to the build I had to ask it to change all of the URL slugs but it was able to do it in one go, so not a big issue
The agent does sometimes get stuck in surprising places which takes a bit of re-prompting, but when it flows its amazing
For some reason it had a difficult time with the search bar
What most impressed me was the layout and the fact that it generated so many different pages with full written out content, based on the starter prompt. I never asked it to create a contact page, about page, privacy policy, terms of service etc. It also created all of the city pages and listings in first try, which I haven't been able to get the older Claude model to do.
I wont actually be going after this niche, but it was a fun experiment. Next step would have been to get actual data and enrichment for the listings and asking the agent to bake it into the build.
Hope this was helpful or at least a bit inspirational. Its' a great time to be building directories 🚀