All Projects → appwrite → sdk-for-dart

appwrite / sdk-for-dart

Licence: BSD-3-Clause License
[READ-ONLY] Official Appwrite Dart SDK 💙

Programming Languages

dart
5743 projects

Projects that are alternatives of or similar to sdk-for-dart

demos-for-vue
Demos and tutorials for getting started with Appwrite + Vue.js
Stars: ✭ 37 (-53.16%)
Mutual labels:  baas, mbaas, appwrite
demos-for-svelte
Demos and tutorials for getting started with Appwrite + Svelte
Stars: ✭ 27 (-65.82%)
Mutual labels:  baas, mbaas, appwrite
playground-for-node
Simple examples that help you get started with Appwrite + Node.js (=❤️)
Stars: ✭ 39 (-50.63%)
Mutual labels:  baas, mbaas, appwrite
playground-for-android
Simple examples that help you get started with Appwrite + Android (=❤️)
Stars: ✭ 48 (-39.24%)
Mutual labels:  baas, appwrite
sdk-for-android
[READ-ONLY] Official Appwrite Android SDK 💚 🤖
Stars: ✭ 62 (-21.52%)
Mutual labels:  baas, appwrite
sdk-for-php
[READ-ONLY] Official Appwrite PHP SDK 🐘
Stars: ✭ 109 (+37.97%)
Mutual labels:  baas, appwrite
ParseCareKit
Securely synchronize any CareKit 2.1+ based app to a Parse Server Cloud. Compatible with parse-hipaa.
Stars: ✭ 28 (-64.56%)
Mutual labels:  baas, mbaas
parse-hipaa
HIPAA & GDPR compliant ready parse-server with postgres/mongo, parse-hipaa-dashboard. Compatible with ParseCareKit
Stars: ✭ 74 (-6.33%)
Mutual labels:  baas, mbaas
Parse Server
API server module for Node/Express
Stars: ✭ 19,165 (+24159.49%)
Mutual labels:  baas, mbaas
sdk-for-kotlin
[READ-ONLY] Official Appwrite Kotlin SDK 💙🧡
Stars: ✭ 41 (-48.1%)
Mutual labels:  baas, appwrite
Appwrite
Appwrite is a secure end-to-end backend server for Web, Mobile, and Flutter developers that is packaged as a set of Docker containers for easy deployment 🚀
Stars: ✭ 14,592 (+18370.89%)
Mutual labels:  baas, appwrite
sdk-for-ruby
[READ-ONLY] Official Appwrite Ruby SDK 💎 🔴
Stars: ✭ 45 (-43.04%)
Mutual labels:  baas, appwrite
demo-todo-with-react
A basic demo example for integrating between Appwrite & React JS 💙
Stars: ✭ 88 (+11.39%)
Mutual labels:  appwrite
js-sdk
Baqend JavaScript SDK and CLI for High-Performance Websites
Stars: ✭ 25 (-68.35%)
Mutual labels:  baas
opentab
开源的轻应用后端(Open Tiny App Backend),轻量,高效,易部署。
Stars: ✭ 27 (-65.82%)
Mutual labels:  baas
playground-for-python
Simple examples that help you get started with Appwrite + Python (=❤️)
Stars: ✭ 36 (-54.43%)
Mutual labels:  appwrite
playground-for-php
Simple examples that help you get started with Appwrite + PHP (=❤️)
Stars: ✭ 24 (-69.62%)
Mutual labels:  appwrite
vbo365-rest
Unofficial Self-Service Web Portal for Veeam Backup for Microsoft Office 365
Stars: ✭ 44 (-44.3%)
Mutual labels:  baas
sdk-for-svelte
Appwrite SDK for Svelte 🧡 ⚠️ Warning - this SDK was designed to support Appwrite 0.9 and is not compatible with the latest Appwrite versions. We are planing to refactor it as part of the SDK Generator for better support and maintenance.
Stars: ✭ 69 (-12.66%)
Mutual labels:  appwrite
vscode-appwrite
Appwrite extension for Visual Studio Code
Stars: ✭ 30 (-62.03%)
Mutual labels:  appwrite

Appwrite Dart SDK

pub package License Version Build Status Twitter Account Discord

This SDK is compatible with Appwrite server version 0.13.x. For older versions, please check previous releases.

This is the Dart SDK for integrating with Appwrite from your Dart server-side code. If you're looking for the Flutter SDK you should check appwrite/sdk-for-flutter

Appwrite is an open-source backend as a service server that abstract and simplify complex and repetitive development tasks behind a very simple to use REST API. Appwrite aims to help you develop your apps faster and in a more secure way. Use the Dart SDK to integrate your app with the Appwrite server to easily start interacting with all of Appwrite backend APIs and tools. For full API documentation and tutorials go to https://appwrite.io/docs

Appwrite

Installation

Add this to your package's pubspec.yaml file:

dependencies:
  dart_appwrite: ^4.0.1

You can install packages from the command line:

pub get dart_appwrite

Getting Started

Initialize & Make API Request

Once you add the dependencies, its extremely easy to get started with the SDK; All you need to do is import the package in your code, set your Appwrite credentials, and start making API calls. Below is a simple example:

import 'package:dart_appwrite/dart_appwrite.dart';

void main() async {
  Client client = Client();
    .setEndpoint('http://[HOSTNAME_OR_IP]/v1') // Make sure your endpoint is accessible
    .setProject('5ff3379a01d25') // Your project ID
    .setKey('cd868c7af8bdc893b4...93b7535db89')
    .setSelfSigned() // Use only on dev mode with a self-signed SSL cert

  Users users = Users(client);

  try {
    final response = await users.create(userId: '[USER_ID]', email: ‘email@example.com’,password: ‘password’, name: ‘name’);
    print(response.data);
  } on AppwriteException catch(e) {
    print(e.message);
  }
}

Error handling

The Appwrite Dart SDK raises AppwriteException object with message, code and response properties. You can handle any errors by catching AppwriteException and present the message to the user or handle it yourself based on the provided error information. Below is an example.

Users users = Users(client);

try {
  final response = await users.create(userId: '[USER_ID]', email: ‘email@example.com’,password: ‘password’, name: ‘name’);
  print(response.data);
} on AppwriteException catch(e) {
  //show message to user or do other operation based on error as required
  print(e.message);
}

Learn more

You can use the following resources to learn more and get help

Contribution

This library is auto-generated by Appwrite custom SDK Generator. To learn more about how you can help us improve this SDK, please check the contribution guide before sending a pull-request.

License

Please see the BSD-3-Clause license file for more information.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].