appwrite_dev 0.3.2 copy "appwrite_dev: ^0.3.2" to clipboard
appwrite_dev: ^0.3.2 copied to clipboard

discontinuedreplaced by: appwrite

Appwrite is an open-source self-hosted backend server that abstract and simplify complex and repetitive development tasks behind a very simple REST API

example/README.md

Examples #

Init your Appwrite client:

  Client client = Client();

  client
      .setEndpoint('https://localhost/v1') // Your Appwrite Endpoint
      .setProject('5e8cf4f46b5e8') // Your project ID
      .setSelfSigned() // Remove in production
  ;

Create a new user and session:

Account account = Account(client);

Response user = await account.create(email: 'me@appwrite.io', password: 'password', name: 'My Name');
 
Response session = await account.createSession(email: 'me@appwrite.io', password: 'password');

Fetch user profile:

Account account = Account(client);

Response profile = await account.get();

Upload File:

Storage storage = Storage(client);

MultipartFile file = MultipartFile.fromFile('./path-to-file/image.jpg', filename: 'image.jpg');

storage.createFile(
    file: file,
    read: ['*'],
    write: []
)
.then((response) {
    print(response); // File uploaded!
})
.catchError((error) {
    print(error.response);
});

All examples and API features are available at the official Appwrite docs

3
likes
20
pub points
0%
popularity

Publisher

verified publisherappwrite.io

Appwrite is an open-source self-hosted backend server that abstract and simplify complex and repetitive development tasks behind a very simple REST API

Homepage
Repository (GitHub)
View/report issues

Documentation

Documentation

License

unknown (LICENSE)

Dependencies

cookie_jar, dio, dio_cookie_manager, flutter, flutter_web_auth, meta, package_info, path_provider

More

Packages that depend on appwrite_dev