Supabase FlutterFlutter Client library for Supabase.
This repo is a monorepo powered by Melos containing supabase_flutter and its sub-libraries. All packages are located in the packages directory.
To install on a locally developed app:
dart pub global activate melosmelos bootstrap or melos bs at the root of the cloned directory to install dependenciespubspec.yaml file specifying the path.
supabase_flutter:
path: <your-path-to-the-local-supabase-flutter-repo>/packages/supabase_flutterThe tests for the packages postgrest, gotrue and storage_client need some Supabase services running.
To run these tests locally, you need to have the docker cli with docker-compose installed.
The needed configuration for starting the services are in the infra directory.
To start the services change working directory to infa/<package> and run the following command:
docker compose up -dRun the Dart tests within the package directory in packages/<package> with the following command:
The -j 1 flag runs the tests not concurrently, which works better since the tests are running against the same services.
dart test -j 1To stop the services run the following command in the infra/<package> directory:
docker compose downThis repo is licenced under MIT.