Local Setup
Step-by-step procedures to run the complete Envault stack locally.
Local Environment Setup
Follow these steps to configure your local Envault environment.
1. Supabase Local Stack
The database, edge functions, and authentication are managed by Supabase.
# Start Docker Desktop first, then run:
supabase startThis commands spin up the local Postgres instance, GoTrue (auth), Storage, and Realtime services. You will see API URLs and the local service keys provided in your terminal output.
2. Next.js Web App
Copy the local environment variables template:
cp .env.example .env.localUpdate .env.local with the values provided by supabase start (e.g., NEXT_PUBLIC_SUPABASE_URL and NEXT_PUBLIC_SUPABASE_ANON_KEY).
Run the development server:
npm installnpm run devThe web dashboard will be accessible at http://localhost:3000.
3. Go CLI Development
To test the Go CLI locally during development:
Navigate to the Go CLI directory:
cd cli-goDownload the requisite Go modules:
go mod downloadBuild the local executable binary:
go build -o envault main.goRun your local binary against your Next.js and Supabase backend:
./envault loginMake sure the CLI is pointing to http://localhost:3000 rather than the production endpoint. There are typically build flags or environment variables (e.g., ENVAULT_API_URL=http://localhost:3000) used for overriding the cloud destination.