패키지, 저장소 및 앱 카테고리 검색

패키지 상세v2.18.3

supabase_flutter

Supabase용 플러터 통합. 이 패키지는 개발자가 안전하고 확장 가능한 제품을 쉽게 구축할 수 있도록 도와줍니다.

AndroidiOSWebmacOSWindowsLinux
30일 다운로드
131만
좋아요
990
Pub 점수
150

패키지 설치

flutter pub add supabase_flutter

패키지 개요

공개 정보를 바탕으로 생성한 선택 가이드입니다.

Supabase Flutter는 Flutter 애플리케이션에 Supabase의 백엔드 서비스를 통합하는 포괄적인 패키지입니다. 최소한의 설정으로 인증, 실시간 데이터베이스 작업 및 클라우드 스토리지를 쉽게 구현할 수 있도록 해줍니다. 보안과 확장성을 고려하여 설계되었으며, Android, iOS, Web, macOS, Windows, Linux 등 다양한 플랫폼을 지원합니다. 이 패키지는 Supabase의 PostgreSQL 데이터베이스, 사용자 관리, 파일 저장소에 대한 접근을 간편하게 만들어 주며, 개발자가 빠르게 강력하고 완전한 앱을 개발할 수 있도록 도와줍니다.

사용 사례

  • 모바일 앱에서의 사용자 인증
  • 실시간 데이터 동기화
  • 클라우드 기반 파일 저장소
  • 안전한 API 통합
  • 확장 가능한 웹 및 모바일 앱 구축
  • 오프라인 우선 앱 개발

주요 기능

  • 이메일/비밀번호 및 소셜 제공자와 함께 내장 인증
  • 실시간 데이터베이스 구독
  • 클라우드 스토리지를 통한 안전한 파일 업로드 및 다운로드
  • 크로스 플랫폼 지원
  • 플러터 친화적인 API를 갖춘 사용하기 쉬운 SDK
  • 자동 스키마 마이그레이션 및 행 수준 보안

적합한 대상

  • 플러터 개발자가 전체 스택 앱을 구축하고 있습니다
  • 보안성과 확장성이 필요한 팀
  • 최소한의 백엔드 작업으로 빠르게 프로토타이핑하는 스타트업
  • 실시간 데이터 업데이트가 필요한 앱
  • 데이터베이스로 PostgreSQL을 사용하는 개발자
  • 다중 플랫폼을 대상으로 하는 프로젝트

고려 사항

  • Supabase 프로젝트 설정이 필요합니다
  • 실시간 기능에 대한 네트워크 종속성
  • 고급 보안 규칙에 대한 학습 곡선
  • 백엔드 지식 없이 제한된 사용자 정의
  • Supabase 서비스 가용성에 따라 달라집니다
  • 오프라인 시나리오에서의 잠재적 지연

원본 README

연결된 소스 저장소의 README 원문 스냅샷입니다. 최신 내용은 저장소에서 확인하세요.


Supabase Logo

Supabase Flutter

Flutter client library for Supabase.

Guides · Reference Docs · Migration Guides

Build Package License: MIT

Run locally

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:

  • Clone this repo
  • Install Melos globally if you haven't already: dart pub global activate melos
  • Run melos bootstrap or melos bs at the root of the cloned directory to install dependencies
  • Add the target package to your pubspec.yaml file specifying the path.
    supabase_flutter:
      path: <your-path-to-the-local-supabase-flutter-repo>/packages/supabase_flutter
    

Testing your app

The helpers the test suites of these packages run on are published in package:supabase_test, so your tests can build on the same primitives: mock HTTP clients, JWT builders, auth session fixtures and realtime frames. Add the package as a dev dependency:

dev_dependencies:
  supabase_test: ^0.1.0

Then stub the endpoints the code under test talks to and run it against a real SupabaseClient, with no running stack required:

final httpClient = MockSupabaseHttpClient()
  ..stubTable('todos', rows: [
    {'id': 1, 'task': 'Ship it', 'status': false},
  ]);
final supabase = testSupabaseClient(httpClient: httpClient);
addTearDown(supabase.dispose);

final todos = await supabase.from('todos').select();
expect(todos, hasLength(1));

See the supabase_test README for the full guide: stubbing database, rpc, edge function and auth endpoints, asserting on recorded requests, running tests as a signed-in user, and wiring Supabase.initialize in Flutter widget tests.

Testing this repo

The tests for the packages postgrest, supabase_auth, supabase_realtime and supabase_storage run against a local Supabase stack. To run these tests locally you need docker and the Supabase CLI installed.

The single configuration for the stack lives in the supabase directory at the repository root. Start it with:

supabase start

Run 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 run against the same services.

dart test -j 1

To stop the stack run the following command from the repository root:

supabase stop

Contributing

  • Fork the repo on GitHub
  • Clone the project to your own machine
  • Commit changes to your own branch
  • Push your work back up to your fork
  • Submit a Pull request so that we can review your changes and merge

License

This repo is licensed under MIT.

Resources

카테고리

의존성

의존성 목록 11 개

소스 저장소

이 패키지를 사용하는 프로젝트