Supabase provides a CLI so that you can develop your application locally, rather than connecting to a live project.
You will need to have these in your environment:
- Docker (make sure the daemon is up and running)
- Supabase CLI (instructions here)
This command will create a
supabase folder which holds all the configuration for developing your project locally.
This command uses Docker to start all the open source services of Supabase. This command will take a while to run, there are a lot of services to build.
Once this is running, you will see an output that contains your local Supabase credentials:
- API Gateway
All of the services are accessible through the API Gateway Kong).
If you are accessing these services without the client libraries, you may need to pass the client keys as an
You can learn more about these JWT headers in our Resources.
Now that we've learned how to install and start Supabase locally, let's see how you can use it with a frontend application. This quick-start guide will show you, how you can configure a React app which uses the Supabase stack.
Now that your application is prepared, start the backend:
You can use Supabase anywhere in your application. Copy this snippet into
Then start the frontend in a separate terminal:
If everything is working, you should have a React app running on
http://localhost:3000 and Supabase services running on
When you're finished with Supabase, send Ctrl-C to stop the Docker services.
You can also use the CLI to manage your migrations. Follow the tour here to get started.