- Go to the Supabase dashboard, in the Authentication section.
- Click the
Add userdrop button, top right, selectCreate new user - Enter user & password & select
Auto Confirm User? - Use that user to login
https://docs.docker.com/desktop/
This will
- install & setup volta with nodejs 20.11.1
- install local npm modules
cd <this dir>
./scripts/setup-local.sh
-
Create a file named
.envin theapps/webdirectory of the project. -
Add the required environment variables to the
.envfile in the following format:NEXT_PUBLIC_SUPABASE_URL=https://yoursupabaseinstance.com -
For the Supabase related variables, see the output of
supabase status
cd <this dir>
npm run supabase:start
cd <this dir>
npm run dev
The process to modify & apply DB schema goes as follow
- Modify local DB using Supabase Studio http://localhost:54323
- Create a migration from your local changes by running
npm run supabase:db:diff <migration-name>
- Verify the content of the generated migration file visually, in
supabase/migrations/ - commit the migration file to repos
Migrations gets applied automatically when starting the local nextjs development server
cd <workspace>
npm run supabase:db:reset