Mobile Backend Starter é uma aplicação backend genérica, extensível e escalável.
Ao utilizá-lo é possível manter o foco do desenvolvimento no aplicativo mobile e criar protótipos funcionais em muito menos tempo, já preparados para escalar em produção.
CloudEntity newPost = new CloudEntity("Guestbook");
newPost.put("message", mMessageTxt.getText().toString());
CloudCallbackHandler<CloudEntity> handler = new CloudCallbackHandler<CloudEntity>() {
@Override
public void onComplete(final CloudEntity result) {
mPosts.add(0, result);
updateGuestbookView();
}
};
getCloudBackend().insert(newPost, handler);
private void listPosts() {
CloudCallbackHandler<List<CloudEntity>> handler =
new CloudCallbackHandler<List<CloudEntity>>() {
@Override
public void onComplete(List<CloudEntity> results) {
mPosts = results;
updateGuestbookView();
}
};
// FROM Guestbook ORDER BY _createdAt DESC LIMIT 50
getCloudBackend().listByKind(
"Guestbook", CloudEntity.PROP_CREATED_AT, Order.DESC, 50,
Scope.FUTURE_AND_PAST, handler);
}
CloudQuery cq = new CloudQuery("MyAddressBook");
cq.setFilter(Filter.and(Filter.eq("name", "John Smith"), Filter.eq("label", "friends")));
cq.setLimit(50);
List<CloudEntity> results = cloudBackend.list(cq);
keytool -exportcert -alias androiddebugkey -keystore ~/.android/debug.keystore -list -v
| Prefixo | Exemplo | get/query | update/delete | insert |
|---|---|---|---|---|
| sem prefixo | Guestbook | todos | entity owner | todos |
| [private] | [private]Guestbook | entity owner | entity owner | todos |
| [public] | [public]Guestbook | todos | todos | todos |