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

패키지 상세v7.3.8

backendless_sdk

Backendless SDK용 Flutter 플러그인입니다. 모바일 및 데스크톱 앱을 개발하고 실행하기 위한 서버 측 기능을 제공하는 Backendless 서비스에 접근할 수 있습니다.

30일 다운로드
247
좋아요
49
Pub 점수
50

패키지 설치

flutter pub add backendless_sdk

패키지 개요

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

backendless_sdk는 Flutter 애플리케이션에 Backendless 서비스를 통합하여 모바일 및 데스크톱 앱용 서버 측 기능을 제공하는 Flutter 플러그인입니다. 사용자 인증, 데이터 저장, 파일 관리, 실시간 메시징과 같은 기능에 원활하게 접근할 수 있습니다. 이 SDK를 통해 개발자는 백엔드 인프라를 관리하지 않고도 기능이 풍부한 애플리케이션을 구축할 수 있습니다. 일반적인 앱 요구사항을 위한 사전 구축된 API와 도구를 제공함으로써 빠른 개발을 지원합니다. 이 플러그인은 Backendless 클라우드 플랫폼과 함께 작동하도록 설계되어 Flutter 프로젝트의 백엔드 통합을 간소화합니다.

사용 사례

  • 사용자 인증 및 권한 부여
  • 실시간 데이터 동기화
  • 클라우드 기반 데이터 저장
  • 파일 업로드 및 검색
  • 푸시 알림
  • 백엔드 로직 실행

주요 기능

  • 사전 구축된 백엔드 서비스
  • 실시간 데이터베이스 지원
  • 인증 관리
  • 파일 저장 API
  • 푸시 알림 통합
  • 크로스 플랫폼 호환성

적합한 대상

  • 모바일 앱 개발자
  • 데스크톱 앱 개발자
  • 풀스택 플러터 개발자
  • 빠른 프로토타이핑 팀
  • 클라우드 백엔드가 필요한 앱

고려 사항

  • Backendless 계정 및 API 키가 필요합니다
  • 인터넷 연결에 의존합니다
  • 자체 호스팅 백엔드와 비교해 사용자 지정 옵션이 제한적
  • 실시간 작업에서의 잠재적 지연
  • 구독 기반 가격 모델

원본 README

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

Backendless SDK for Flutter

pub package Build Status - Travis

A Flutter plugin enabling integration with Backendless.

Note: This plugin is still under active development. Some APIs may not be available yet while others may change. We will be updating the release history of the plugin and as soon as it reaches the general availability (GA) state, the APIs will be consistent for backward-compatibility.

Feedback and Pull Requests are most welcome!

Getting Started

Follow the steps below to get started with Backendless Flutter SDK:

STEP 1. Register the plugin

To use this plugin in your Flutter project, add backendless_sdk as a dependency in your pubspec.yaml file:

dependencies:
  backendless_sdk: ^7.3.8
STEP 2. Import the Backendless SDK:

Add the following import to your Dart code

import 'package:backendless_sdk/backendless_sdk.dart';
STEP 3: Initialize the Backendless SDK

Use the following call in your code:

@override
void initState() {
  super.initState();
  Backendless.initApp(
      applicationId: APPLICATION_ID,
      androidApiKey: ANDROID_API_KEY,
      iosApiKey: IOS_API_KEY,
      jsApiKey: JS_KEY);
}

The APPLICATION_ID, ANDROID_API_KEY and IOS_API_KEY values must be obtained in Backendless Console:

  1. Login to your Backendless account and select the application.
  2. Click the Manage icon from the vertical icon-menu on the left.
  3. The App Settings section is selected by default. The interface contains values for Application ID and API keys for each supported client-side environment.
  4. Use the Copy icon to copy the value into the system clipboard.
STEP 4. Use the Backendless APIs.

For example, here is a sample code which stores an object in Backendless database:

Backendless.initApp(
  applicationId: APPLICATION_ID,
  androidApiKey: ANDROID_API_KEY,
  iosApiKey: IOS_API_KEY,
  jsApiKey: JS_KEY);

// create a Map object. This will become a record in a database table
Map testObject = new Map();

// add a property to the object. 
// The property name ("foo") will become a column in the database table
// The property value ("bar") will be stored as a value for the stored record
testObject["foo"] = "bar";

// Save the object in the database. The name of the database table is "TestTable".
Backendless.data.of("TestTable").save(testObject).then(
  (response) => print("Object is saved in Backendless. Please check in the console."));

Enable Web support

Run the following commands to enable web support

flutter channel dev
flutter upgrade
flutter config --enable-web 

Once web is enabled, you can:

Create a new project with web support using the following commands:

flutter create myapp
cd myapp

or add web support to an existing project by running:

flutter create .

After that you can launch your app in the Chrome browser using your favorite IDE or this command:

flutter run -d chrome

For more information, see the official documentation.

Getting Started with Backendless Flutter Web

Follow the steps below to get started with Backendless Flutter SDK for Web:

  1. Make sure you incude the latest version of backendless_sdk plugin in your pubspec.yaml file.
  2. Open your web/index.html file and reference the Backendless JS library at the end of the head tag like that:
<head>
  ...
  <script src="https://api.backendless.com/sdk/js/latest/backendless.min.js"></script>
</head>
  1. Initialize the Backendless SDK for Web. Use the following call in your code:
@override
void initState() {
  super.initState();
  Backendless.initApp(
      applicationId: APPLICATION_ID,
      jsApiKey: JS_API_KEY);
}

The APPLICATION_ID and JS_API_KEY values must be obtained in Backendless Console.

If you want to add the Web support to your existing mobile Flutter application just specify the jsApiKey parameter in your initApp method.

After that you can use Backendless SDK in your Web application the same as in mobile app.

카테고리

의존성

의존성 목록 4 개

소스 저장소

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

아직 데이터가 없습니다.