SUNACE OS Solutions Cloud Setup

This package is a complete cloud-ready web application. Complete these one-time steps to connect it to your own secure database and website address.

1. Create the cloud database

  1. Create a Supabase account and a new project.
  2. Open the project's SQL Editor.
  3. Open the included supabase-schema.sql file, copy everything, paste it into the SQL Editor, and run it.

2. Connect the application

  1. In Supabase, open the project's API settings.
  2. Copy the Project URL.
  3. Copy the browser-safe publishable key or legacy anon key. Never use the service-role key.
  4. Open config.js and replace both placeholder values.
window.SUNACE_CONFIG = {
  SUPABASE_URL: "https://YOUR-PROJECT.supabase.co",
  SUPABASE_ANON_KEY: "YOUR-PUBLISHABLE-KEY"
};

3. Test it

The app must be opened through a web server, not by double-clicking the HTML file. A simple local test command is:

python3 -m http.server 8080

Then open http://localhost:8080.

4. Put it online

Upload all files in this folder to any static website host, such as Netlify, Cloudflare Pages, Vercel, GitHub Pages, or your existing website hosting. No server code is required because Supabase provides authentication and the secured database.

5. Create your owner account

  1. Open the deployed website.
  2. Select Create Account.
  3. Enter your email and a strong password.
  4. If email confirmation is enabled, confirm the message sent by Supabase.
  5. Sign in on both your iPhone and MacBook using the same account.

6. Install on iPhone

  1. Open the deployed site in Safari.
  2. Tap Share.
  3. Tap Add to Home Screen.

Security notes