An app that collects leads and scores them
A public form anyone can fill in, a private dashboard only you can see, and a score with a written reason on every lead, decided on the server.
What's in the project
1. The app shell, with login
A working app with an email login, an empty dashboard and a public form page. Nothing is scored and nothing is stored yet, but every screen you need exists.
2. The table, and the rule that protects it
One table and the access rules around it. This is the part a client cannot see and the part that matters most: one account must never be able to read another's leads.
3. The function that scores and writes
The only thing in this build allowed to write a lead. An Edge Function is a small piece of code that runs on Supabase's servers, so the Claude key never reaches a browser. It asks Claude for a score and a reason, and stores the row.
4. The form reaches the function
One lead travelling the whole way: a stranger's form, a function, a model, a row. Until this works, the dashboard has nothing to show.
5. The dashboard, and proof of the access rule
The dashboard doing the job a person came for, and the test that separates a toy from a product: a second account that cannot read your leads even though it is looking at the same table.
6. Publish, and hand over two addresses
The two addresses that make this a deliverable: one a stranger fills in, one only the owner can open. Both on the published app, not on a preview.
Tools you'll use
Lovable
SupabaseClaude API