Phase 1 foundation for the Accelerate Global app.
This repo intentionally stops at the application skeleton:
- Next.js App Router with separate public, product, and admin shells
- Supabase client wiring for browser, server, and future middleware usage
- Environment validation and deployment-ready
.env.example - Placeholder routes for the Phase 1 route map
What it does not implement yet:
- real invite flow
- real magic-link login
- route protection
- admin role enforcement
- live dataset browsing or admin CRUD
npm run devstarts the Next.js app in development mode.npm run buildcreates a production build.npm run startserves the production build.npm run checkruns Ultracite checks.npm run fixapplies Ultracite fixes.
Phase A adds a read-only Google Workspace validation path on
/app/admin/apis.
Setup steps:
- Create or select a Google Cloud project for the integration.
- Enable both Google Sheets API and Google Drive API.
- Create a Google service account.
- Download the service account JSON credentials.
- Store the full JSON document in
GOOGLE_WORKSPACE_SERVICE_ACCOUNT_JSON. - Share the target spreadsheet with the service account email as a
Viewer. - Set
GOOGLE_WORKSPACE_SOURCE_SPREADSHEET_ID. - Optionally set
GOOGLE_WORKSPACE_SOURCE_SHEET_NAME. - Optionally set
GOOGLE_WORKSPACE_SOURCE_RANGE. - Set the Google Workspace env vars in local development and in Vercel preview and production.
- Validate the connection from
/app/admin/apisas an admin user.
Notes:
- The Google credentials stay server-only and must never be exposed to the browser.
- The current integration validates one configured spreadsheet only.
- The current integration is read-only and does not write back to Google.
- Create the Supabase project.
- Copy the Supabase URL, anon key, and service role key into local environment variables.
- Set the Supabase environment variables in Vercel preview and production.
- Keep
NEXT_PUBLIC_APP_URL=http://localhost:3000locally. - In Vercel production, set
NEXT_PUBLIC_APP_URL=https://data.accelerateglobal.org. - Do not rely on Vercel system URL variables for production auth redirects or invite links.
- If preview auth testing is needed, prefer an explicit preview
NEXT_PUBLIC_APP_URLover deployment-host fallback. - In the hosted Supabase Dashboard, configure Auth
site_urland allowed redirect URLs forhttps://data.accelerateglobal.org/auth/callback. - Treat
supabase/config.tomlas local CLI-only config; it does not configure hosted Supabase Auth.
This repo keeps Supabase at scaffold depth in Phase 1.
supabase/config.tomlis present for local tooling.supabase/migrations/is intentionally empty until the auth/access phase.- Add the first real schema and RLS work in a later phase instead of front-loading it here.
This project is licensed under the GNU General Public License v3.0 (GPL-3.0). See the LICENSE file for the full license text.