Complete steps to deploy SONAN Location Launchpad from scratch.
cd sonan-location-launchpad
git init
git add .
git commit -m "feat: initial SONAN Location Launchpad"
git remote add origin https://github.com/sonantechai/sonan-location-launchpad.git
git push -u origin main
npm install -g wrangler
wrangler login
wrangler d1 create sonan-location-launchpad
Copy the database_id from the output and paste it into wrangler.toml:
[[d1_databases]]
binding = "DB"
database_name = "sonan-location-launchpad"
database_id = "YOUR_DATABASE_ID_HERE"
# Local (for testing)
wrangler d1 execute sonan-location-launchpad --file=db/migrations/001_schema.sql
# Remote (production)
wrangler d1 execute sonan-location-launchpad --remote --file=db/migrations/001_schema.sql
wrangler d1 execute sonan-location-launchpad --remote --file=db/seed/seed.sql
sonan-location-launchpad repositorysrcDB, D1 database = sonan-location-launchpadIf using fallback password auth, go to Pages → Settings → Environment Variables:
ADMIN_PASSWORD — set a strong passwordlaunchpad.sonantech.comSee the Zero Trust Guide for detailed access configuration.
npm run dev
# Starts local dev server at http://localhost:8788
# D1 runs locally via wrangler