Free

Step-by-step plan

How to build a web app with user accounts using Codex

Build a small application with accounts and one useful action. Test it with sample data first and make sure users cannot see each other’s records.

Define one useful user action and data for a sample check. We will test registration and access for different users separately.

Paste the prompts in order into Codex or Work with access to these materials.

Step 1. How to describe an idea and first scenario

Start with one user action, such as saving a request and finding it after signing in again. The assistant reads the materials and asks only about missing details.

For a deeper discussion before writing code, use the office-hours workflow in gstack. It helps choose the first journey and save a plan. Connect the collection only after checking the environment and approving installation; ordinary Codex work is enough for a brief discussion.

Find the project and app idea. Suggest one first scenario with a verifiable result. Ask about missing roles, data and purpose. Save the chosen journey and separate future features.

Step 2. Where to choose platform and data storage

Use the existing project’s suitable foundation. For a new app, the assistant compares a simple option with one alternative, considering sign-in, storage and costs.

For a local trial, SQLite provides a database in one file; for a shared production database, the assistant checks PostgreSQL and existing connections.

If you need sign-in and files alongside the database, consider Supabase. Start with the existing project and sample data. For direct browser access, check both table permissions and access rules for individual records.

Find the project architecture and available connections. Choose a simple way to implement our journey: interface, sign-in, storage and hosting. Compare one suitable alternative using current documentation and costs.

Step 3. How to describe data and user access

Define the records users create and who can see them. Testing another user’s access matters more than a polished sign-in screen.

Prepare the required data and customer and staff permissions for the agreed journey. Use a suitable established sign-in method. Test access to an owned record and refusal of access to another user’s record with test accounts.

Step 4. How to approve screens and design

Agree on the action sequence before styling. The assistant shows a working draft with clear loading, error and result states.

You can choose a design before implementation in the free Kombai gallery: dashboards, user profiles and settings. You do not need a Kombai account or subscription to browse and send a reference to Codex.

Open the gallery, choose a page or an individual element, open its card and view Live preview. Copy the card link or use the Use in other agents button to copy its prompt. Send it to Codex with your task. Detailed instructions and limitations.

Paste this into Codex for your chosen reference:

Find the project and task materials. Read the project instructions and my materials.
Use this design as a reference: [link to the Kombai card or Live preview].

My task: create a web application with user accounts and the required admin area.
Content and functions: the agreed user flow, user records, roles, navigation, loading, empty states and errors.

Take the link from my message; if none is provided, ask me to choose a reference. Find the other details in the project and ask about anything missing.
Open the reference and study its composition, colors, typography, spacing, images and element behavior. Adapt the design to my task and project stack. Keep its character and replace demo copy and data with mine. If HTML is available from Live preview, examine it and use suitable parts as a starting point. If the source is unavailable, say so and implement from the available reference.
Show the screens with sample data first. Test sign-in, user permissions, storage and payment, if used, separately; appearance does not prove they work.
Check desktop and mobile layouts, run the project locally and show the result. Ask about missing product facts; do not invent them.
Ask questions to improve the result and suggest improvements.

For separate work on the screens, use the interface-design plan.

Find the agreed journey and design materials. Build a prototype of the required screens with sample data. Check wide and narrow layouts, loading, failure and success. Show the result in the browser.

Step 5. How to implement one complete path

An action should create a real result that persists after reloading. A “saved” message without a stored record does not complete the task.

Implement the agreed journey from input to saving and reading the result. Check required fields, failure and repeated submission. Reopen the app and show the saved sample record.

Step 6. How to check security and errors

The assistant tests two sample accounts, signing out and a failed action. Failure should neither expose another user’s data nor create duplicates.

If you need to measure completion of a flow, connect PostHog after confirmed server success. First match the event to the saved record. Two submissions from one account should produce two events and one unique user over the entire test period.

Test our journey with two sample users. Check another user’s record, a signed-out request, signing out, failure and repetition. Fix confirmed issues and repeat the checks using the project’s tools.

Step 7. Where to host the test version and how to connect the address

Open the test version in the chosen environment. For a custom application, the assistant can compare Vercel (website) and Railway; check sign-in and data at the actual address.

Before sending code to Vercel, check the team, project, application root folder and release branch. For Preview, check test variables and the allowed sign-in callback address. Then repeat saving with two accounts. Restoring an earlier site version does not restore the external database state.

Find suitable hosting for the project. Use an existing environment or compare Vercel and Railway by requirements and current costs. Deploy a sample version through available tools. Check its URL, sign-in, records, permissions and restart.

Step 8. How to save data and update the app

Users will be able to complete the chosen journey and return to their data. The assistant preserves a working version and tests recovery on a separate copy.

Next step: Fix a project bug.

Preserve the checked app version and prepare its next update. Test code and sample-data recovery on a separate copy. After an authorised release, repeat the user journey at the live URL.

You can delegate the complete journey with one prompt:

Find the application project and the agreed first user flow. Implement the path from sign-in to a saved result. Use test data to check roles, refusal of access to another user’s records, errors and repeated actions. Show the result after signing in again. Prepare a verified release and a rollback that preserves new data.

What to try next

Saved