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
- Create a Supabase account and a new project.
- Open the project's SQL Editor.
- Open the included
supabase-schema.sql file, copy everything, paste it into the SQL Editor, and run it.
2. Connect the application
- In Supabase, open the project's API settings.
- Copy the Project URL.
- Copy the browser-safe publishable key or legacy anon key. Never use the service-role key.
- 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
- Open the deployed website.
- Select Create Account.
- Enter your email and a strong password.
- If email confirmation is enabled, confirm the message sent by Supabase.
- Sign in on both your iPhone and MacBook using the same account.
6. Install on iPhone
- Open the deployed site in Safari.
- Tap Share.
- Tap Add to Home Screen.
Security notes
- Row Level Security is enabled by the included SQL.
- Each account can read and change only records belonging to that account.
- The service-role database key must never be placed in this app.
- Use HTTPS hosting for the deployed version.