All articles
September 12, 20269 min read

How I Prototype Quickly

How I get an idea on screen fast, and the stack I've grown fond of. A bit more technical than the others.

By George Rhinehart

Most of my projects start the same way. An idea shows up, I open an editor and an AI tool, and by the end of the afternoon there's something I can click on. Not finished, not pretty, but real enough to tell me whether the idea is any good. This is how I actually do it, and it gets a bit technical, because I'm a technical person.

Sanic, a badly drawn Sonic the Hedgehog, running: gotta go fast
via giphy.com

My stack (yours can be different)

I've just grown fond of this combination. None of it is the only way, but it's what I reach for without thinking:

  • VS Code as my editor, with a Claude subscription. I use Claude Code right inside the editor, so the AI works on the same files I'm looking at.
  • React + Vite for the front end. Vite starts in about a second and reloads as you type.
  • Ruby on Rails and Postgres for the back end and database, but only if the prototype makes it that far. Rails has strong conventions, so there's one obvious place for everything, and the AI tends to generate Rails code that fits.

That's it. No hosting at this stage - a prototype runs on my laptop. I don't even create a GitHub repo first. At the time of writing this, I'll probably spin up a GitHub repo specifically for prototyping soon - start source controlling things early! But prototyping should be disposable code.

I use a Mac, too. Most of my life has been on Windows, but these days I'd only ever use Windows to get to a Linux machine. Linux and macOS are very similar, and most development tools assume one of them. So choose one of those. Macs are good.

Could you do this differently? Absolutely. v0 will generate a React interface from a description in a couple of clicks, and Supabase gives you a database, sign-in, and file storage in one place. I just like my style. Honestly, I should consider Supabase more, because AWS S3, while good, is hard to use! AWS is powerful and amazing, but it's a lot of products and features. A whole lot.

Think first

Rodney Dangerfield thinking hard, doing math in his head
via giphy.com

Before anything else, I think about what I'm building, and try not to take anything for granted. That starts with what kind of thing I'm prototyping. Sometimes it isn't a front end change at all. It's more back end focused, something people might never see, and I need to test out that idea before going further. In that case I skip the screens and go straight at the part I'm unsure about, and only build an interface once I know it works.

In my day job, I've learned that not everybody immediately thinks about things this way. The edge cases and small decisions that add up are easy to take for granted. "I want an app that does some big thing" isn't what you build. You build in increments, like a house: foundation, then framing, then walls, and each step has to hold up before the next one goes on. Running things live, with all the minutiae that comes with it, is a whole other post. Fortunately, a prototype doesn't need to handle any of that yet.

Front end first

Most of the time it's something people will see and click, so I start with a front-end-only app, just React and Vite. It's the equivalent of getting the idea on paper: no database, no sign-in, no back end, just one screen that does one job. Then I describe the screen to the AI - what's on it, what you can click, what happens when you do. That's enough to find out whether the idea feels right.

And this part is important: fake data. You want mock data, and plenty of it - data the AI can test itself against, and data you can review and test yourself. It goes in a plain array, or in the browser's localStorage if I want it to survive a refresh. What you end up doing is early scaffolding for the real structures that need to exist later.

Back end when it earns it

If the prototype holds up and needs real data, real users, or anything shared between people, that's when Rails comes in. I keep the React app in a client/ folder inside the Rails project, so it's all one project:

my-idea/
  app/          Rails models, controllers, the API
  config/
  db/           migrations and schema
  client/       the React + Vite app from the first afternoon

Because I started with fake data shaped like real records, moving to the API is mostly swapping where the data comes from. The screens don't change much.

Working with the AI

Structure is the fun part. Deciding how the pieces fit together is the idea taking shape, and I want my hands on it. What I hand off is the tedious work that isn't really what the idea is about: lots of realistic fake data, the first pass at layout and styling, repetitive wiring like forms and error states, and a first draft of the copy, which I then rewrite. Since there's no source control this early, I keep the asks small. A small change is easy to undo. A big one, I'm untangling by hand.

One thing that gives me a lot of speed is that I have other projects to reference. Most new ideas reuse concepts, styles, and pieces I've already worked out somewhere else, so instead of describing everything from scratch, I point the AI at the project where I've done it before and say "like that."

Beyond that, most of getting good results out of an AI tool is just being clear. I say what the thing is for and how it should behave, not just what to build - "a screen where a teacher checks if next week is planned" gets a lot further than "make a dashboard." I ask for one thing at a time, because big vague asks get big vague results. I give it limits, like "no back end" or "don't add new libraries," because left alone it'll build more than I asked for. For anything bigger, I have it explain its plan first, including what it's unsure about. I also like to have it ask me questions - for clarification, or just for assurance that we're on the same page - before it starts. It's the easiest way to catch the things I took for granted.

When it goes wrong, I try to be specific. "The total is off by 100x" beats "it's broken." And if it's going in circles, it's disposable code, so sometimes the fastest fix is redoing that piece with a clearer ask. If it looks like every other app, I say so and push back.

Where I slow down

There are a few things I don't let the AI decide. What it's for, for one - I keep it to the one job. The data model, too, since tables and relationships are hard to change later. Anything with money, passwords, or personal data, I read every line. And when to stop: a prototype's job is to answer a question, and once it has, I either throw it away or start treating it like a real app.

Sometimes prototyping doesn't result in any real advance. It feels that way, anyway, but you've thought through the problem more than you had before. Sometimes you'll need to shelve it for a while and come back to it later, and that's fine.

Quick tutorial: a front end only prototype

A cheering 'you can do it' reaction GIF
via giphy.com

Two ways to do the same thing: in v0 if you'd rather not touch a terminal, or locally, the way I do it. Pick one. You don't need to write code to try out an idea anymore, and if you want to stay non-technical, v0 is a great place to be (so are Lovable, Bolt, and Replit). But when you're doing things for real, you'll want a development environment of your own, an area you control, and probably a technical person helping. As a developer, I just go straight to my local setup because I already have it.

Before either one, think about the thing you're building. Really think about it, and don't take anything for granted. Who is it for? What's the one thing they need to do? What happens when they do it, and what happens when something goes wrong? What does the data actually look like? Write it down, even roughly. The AI will fill every gap you leave with a guess, and you won't always notice which parts it guessed.

You'll need a free v0 account. That's it.

1. Describe one screen, with fake data. Start a new chat and paste something like:

A single screen for listing things for sale. Show a list of items with a
title, price, photo placeholder, and status (for sale or sold). Include 15
realistic fake items. Clicking an item marks it sold. Keep it simple, no
back end, no sign-in.

v0 builds it and shows you a live preview next to the chat.

2. Change one thing at a time. Reply in the same chat: "Make sold items fade out." "Add a filter for items under $50." Look at the preview after each one.

3. Make it stick around, if you need to, by asking it to save changes to the browser's localStorage, so marking something sold survives a refresh.

4. Show someone. Use v0's share or publish option to get a link, hand it to someone, and don't explain anything. If the idea holds up and starts needing real users or real data, that's when it's time for a real development setup, and probably a technical person.