-
Notifications
You must be signed in to change notification settings - Fork 10
Supabase
Supabase is a Postgres database and database API used on the Streamability project. This is cloud based for production and run on in a docker container for local development. This document is intended to help developers setup and use the local supabase instance.
You will need to install docker on your machine to run the local Supabase server. Follow the installation instruction on the docker website for your specific OS.
Have the project set up with node modules installed. Refer to getting started if necessary.
-
Ensure docker is running.
-
Populate the
.envfile.
VITE_SUPABASE_URLVITE_SUPABASE_ANON_KEY
Both keys will be output by the command:
npm run db-startTo have the keys automatically written to you .env file, use the command:
npm run db-start-envTo start the local Supabase instance, use the command:
npm run db-startThis will start the Supabse instace and launch the GUI on localhost:54323.
To stop the local Supabase instance, use the command:
npm run db-stop[How To] Delete the profile table