Step 14: Verify Code
Phase: implement
Context
You have app_files — the complete app ready to deploy. Before deploying, verify everything is correct.
What to do
Review the generated code against this checklist. Fix any issues before deploying.
Verification checklist
API configuration
- Is
API_URLset tohttps://run402.com? - Is
ANON_KEYset to the actualanon_keyfrom Step 10? - Is
service_keyabsent from frontend code? (It should NEVER be in client-side code) - Do all API calls include the
apikeyheader?
Data operations
- Do table names in API calls match
tables_created? - Do column names in queries match the actual schema?
- Are PostgREST filter operators correct? (eq, neq, gt, gte, lt, lte, like, ilike, in, is)
- Do POST requests include
Prefer: return=representationif you need the created row back?
Authentication (if applicable)
- Does signup call
/auth/v1/signup? - Does login call
/auth/v1/token?grant_type=password? - Is the
access_tokenstored (e.g., in localStorage)? - Do authenticated requests include
Authorization: Bearer {access_token}? - Is there a logout flow that clears the token?
- Are protected UI elements hidden when not logged in?
RLS compatibility
- If using
user_owns_rows: does every INSERT include theuser_id(or owner column)? - If using
public_read: are write operations only done withservice_key(admin only)? - If using
public_read_write: is this acceptable for the app's security model?
UI / UX
- Does the app display loading states while fetching data?
- Are errors shown as friendly messages (not raw API errors)?
- Does it work on mobile if
app_spec.ui.mobile_friendlyis true? - Are interactive elements (buttons, inputs) large enough to tap on mobile?
HTML validity
- Does
index.htmlstart with<!DOCTYPE html>? - Are all tags properly closed?
- Is
charset="UTF-8"set? - Is
viewportmeta tag present for mobile?
If any issues are found, fix them in app_files before proceeding.
What to tell the user
"Everything looks good! Deploying your app now..."
Expected output
No new outputs. This step is a verification gate. Only proceed to Step 15 after all checklist items pass.