Set up a backend with supabase: Free AI Prompt | SheCodes

Free AI prompt · The Code Book

Set up a backend with supabase

A ready-to-use prompt from the chapter Backend. Paste it into Claude, ChatGPT, Lovable, Bolt or any AI coding tool.

The prompt

“Set up a backend for my app using Supabase. I need tables for [users, posts, comments]. Include row-level security policies so users can only edit their own data.”

How to use it

  1. Fill in the blanks with your own details, so the AI builds your project, not a generic one.
  2. Copy the prompt and paste it into your AI coding tool.
  3. Check the result in the preview, then ask for changes one at a time: "make the buttons bigger", "use my brand colours".
  4. Read the chapter to understand why it works and what to do next.

More prompts like this

All prompts

Add an api route

“Add a backend endpoint to my app that [creates/reads/updates/deletes] [resource] from my database. Handle errors gracefully and return a friendly message if something goes wrong.”

Connect frontend to backend

“Connect my frontend to my Supabase backend. Fetch [posts/products/users] from the database and display them on the [homepage/dashboard]. Add loading and error states.”

Set up a frontend project

“Set up a new Next.js project with TypeScript, Tailwind CSS, and App Router. Create a clean homepage with a [header/hero/features] layout.”

Add multi-page navigation

“Convert my single-page app into multiple pages with proper navigation. Add routes for [home, about, dashboard, settings].”

Make it responsive

“Make my website fully responsive so it looks great on phones, tablets, and desktops. Use Tailwind CSS breakpoints and make sure the navigation works on mobile with a hamburger menu.”