altogic_dart 0.0.1 altogic_dart: ^0.0.1 copied to clipboard
Dart client for Altogic. Altogic is a backend application development and execution platform, enabling people and businesses to design, deploy and manage scalable applications.
example/altogic_dart_example.dart
import 'package:altogic_dart/altogic_dart.dart';
Future<void> main() async {
var client = await AltogicClient.init(
envUrl: '{YOUR-REMOTE-URL}', clientKey: '{YOUR-CLIENT-KEY}');
var signIn =
await client.auth.signInWithEmail('mehmedyaz@gmail.com', 'mehmetyaz');
if (signIn.errors != null) {
// signed in
} else {
// error
}
var dbRes = await client.db.model('car').create({'car_name': 'My car'});
if (dbRes.errors != null) {
print(dbRes.data);
}
}