Define the screens and the access
Write down the expected actions for each role. In our example: a visitor reads the public entries, a manager manages them. List the fields needed and start with this single journey before adding payment, booking or notifications.
Create the project in Sahara AI with an active eligible hosting plan. Ask for the screens and check the preview with fictitious data. A successful interface does not yet prove that the data is stored or that the permissions are correct.
Connect your own Supabase project
Your Supabase account holds the database, its region, its quotas and any fees. They are separate from the hosting and from Sahara AI credits. The Supabase connection is available on all three Sahara AI plans.
Open database management in Sahara AI and follow the built-in connection guide to link your Supabase project. Start with a test project. The fields and permissions requested are described in that guide; do not paste your secrets into the conversation.
Define the rules in the database
Ask for the tables and operations needed, then review what will be run before changing the database. Supabase recommends enabling Row Level Security (RLS) for exposed tables and defining the rights suited to each role.
Hiding a button in the interface does not protect an entry. Check on the database side that visitors can only read what is public and that changes are limited to authorised managers. Secret and service_role keys bypass these protections: they must stay on the server side, never in the code delivered to the browser.
Test persistence and access refusals
With fictitious data, add an entry and then reload the page: it must be retrieved from the database. Then try editing and deleting with the manager role.
In a signed-out session and then with an unauthorised account, check that these operations are refused, including through a direct request to the API. Also check required fields, network errors and screens with no results. Do not load customer data until these checks are satisfactory.
Publish and repeat the checks online
In Sahara AI, choose the active hosting plan and the target domain in your account, then start publishing the checked version. Check the domain and the HTTPS certificate, then repeat the tests from the public address.
If you use user sign-in, also check the redirect URLs allowed in your Supabase configuration for the published domain. Source export remains available, but it does not replace configuring the database and its services. This approach produces a web application; it does not include publication on the Android or iPhone stores.