Local development with Supabase and PowerSync.
Developers using Supabase local dev might prefer being able to develop against PowerSync locally too, for use cases such as running end-to-end integration tests.
Local development is possible with either self-hosted PowerSync or PowerSync Cloud instances. Self-hosting PowerSync for local development is the recommended workflow as it’s more user-friendly.
An example implementation and demo is available here:
See the README for instructions.
This guide describes an example local dev workflow that uses ngrok and the PowerSync CLI.
This guide assumes that you have both ngrok and the Supabase CLI installed
This guide only covers using ngrok. Other configurations such as an NGINX reverse proxy are also possible.
Here we obtain the local port that supabase is listening on and initialize ngrok using it.
Make a note of the hostname (4.tcp.us-cal-1.ngrok.io
and port number 19263
), your values will differ.
Host
field does not contain the tcp://
URI Scheme outputted by ngrokverify-ca
and click Download certificateRefer to: CLI (Beta)
Coming soon. Reach us on Discord in the meantime if you have any questions about testing.
Local development with Supabase and PowerSync.
Developers using Supabase local dev might prefer being able to develop against PowerSync locally too, for use cases such as running end-to-end integration tests.
Local development is possible with either self-hosted PowerSync or PowerSync Cloud instances. Self-hosting PowerSync for local development is the recommended workflow as it’s more user-friendly.
An example implementation and demo is available here:
See the README for instructions.
This guide describes an example local dev workflow that uses ngrok and the PowerSync CLI.
This guide assumes that you have both ngrok and the Supabase CLI installed
This guide only covers using ngrok. Other configurations such as an NGINX reverse proxy are also possible.
Here we obtain the local port that supabase is listening on and initialize ngrok using it.
Make a note of the hostname (4.tcp.us-cal-1.ngrok.io
and port number 19263
), your values will differ.
Host
field does not contain the tcp://
URI Scheme outputted by ngrokverify-ca
and click Download certificateRefer to: CLI (Beta)
Coming soon. Reach us on Discord in the meantime if you have any questions about testing.