From idea to launch in a day: the backend half of an MVP

An MVP backend needs four things - data, an API, user accounts and access rules. A one-day plan that gets all four live without writing server code, and what to leave for later.

CodeFreeAPI Team
3 min read

The point of an MVP is to find out whether anyone wants the thing. Every day spent on setup before that is a day without an answer.

The backend is where that time usually goes. Not because it's hard, but because there's a lot of it: pick a framework, set up a database, write migrations, add routes and validation, handle login and tokens, configure CORS, deploy, keep it running. Two weeks later the first real POST works, and nobody has seen the product yet.

This post is a plan for doing the backend half in a day.

What an MVP backend actually needs

Strip it down and almost every MVP needs the same four things:

  1. Somewhere to store data, with a structure: users, orders, posts, bookings.
  2. An API the frontend can call to create, list, change and delete that data.
  3. User accounts: sign-up, login, password reset.
  4. Rules about who can see and change what. At minimum, "each user sees only their own records".

Most MVPs also need one or two integrations, usually payments or email. Everything else (caching, queues, microservices, a custom admin panel) can wait until people are using it.

The plan

Morning: model the data

Write down the nouns of your product and what each one holds. For a simple booking app:

Entity Fields
services name, duration_minutes, price
bookings service (relation), date, time, notes, status

In CodeFreeAPI, each of these is an entity with typed fields, created in the dashboard. Every entity gets REST endpoints straight away, with filtering, sorting, pagination and relations. If one of the templates (todo, blog, online store, waitlist, CRM) is close to your idea, start from it and rename things.

Midday: rules and accounts

Every project has its own user accounts, with sign-up, login and password reset emails, so you don't build that part. Then set the rules per entity:

  • services: anyone can read, only admins can change them.
  • bookings: signed-in users can create them, and each user only sees and changes their own.

That second rule is the one people most often get wrong in a hand-written backend. Here it's a setting, and the owner of a record comes from the login token, not from anything the browser sends.

Afternoon: connect the frontend

Your frontend talks to the API with plain fetch:

const API = 'https://YOUR_PROJECT.codefreeapi.com/api/v1';

const res = await fetch(`${API}/bookings?sort=date&populate=service`, {
  headers: { 'X-API-Key': 'YOUR_PUBLISHABLE_KEY', Authorization: `Bearer ${accessToken}` },
});
const { data } = await res.json();

The project's interactive API docs (Swagger UI) list every endpoint with its fields, so you can try requests before writing any frontend code. If you build the frontend with Lovable, v0, Bolt or Cursor, give the tool those docs and it can write the calls for you.

Evening: the one integration

If you take payments, use a custom endpoint with an HTTP request step to create a Stripe Checkout session. The Stripe secret key is stored as an encrypted project secret and never reaches the browser. The same goes for sending email through a provider like SendGrid.

Then put the frontend online, and send the link to the first ten people who should use it.

What to leave for later

  • Scale. Your first hundred users won't need it, and you'll know much more about your real load by then.
  • A custom admin panel. The dashboard's table view lets you look at and fix data in the meantime.
  • Perfect architecture. If the idea works, you'll rebuild parts anyway. Your data can be exported as JSON or CSV whenever you want.

What you give up

A hosted backend is a trade. You don't get SQL access, realtime updates or sign-in with Google, and the free plan has request limits (see pricing). If your MVP depends on one of those, pick a tool that has it. For most MVPs it's the right trade: the goal is to learn if people want the product, and a backend nobody has used yet doesn't need to be custom.

Build it on a real backend

Database, REST API, user login and logic, hosted for you. Free plan, no credit card; your API is live in a few minutes.