droidcon 2015 - android baas hands-on

15
Android BaaS hands-on Droidcon 2015 Torino Giulio Roggero, Federico Oldrini, Jacopo Giola Join http://goo.gl/8V2OZC to test the App

Upload: giulio-roggero

Post on 18-Jul-2015

240 views

Category:

Software


1 download

TRANSCRIPT

Android BaaS hands-on

Droidcon 2015

Torino

Giulio Roggero, Federico Oldrini, Jacopo Giola

Join http://goo.gl/8V2OZC to test the App

Simplicity - the art of

maximizing the amount

of work not done - is

essential.agilemanifesto.org

Developers need …

• Data

• Files, photos and videos

• Push notifications

• Users

• Advertising

• Analytics

• External data

… and don’t waste time on part of the system that are always

the same!

Focus on customer value!

The solution?

BUSBaaS

2011

Backend as a Service

A cloud service (and on premise) that solves

typical server-side problems

Pros of a BaaS

• No server setup for each App

• No common code replica for each App

• Simple API

• Indipendence by the device OS

REST APIs

Push Servers

Google

Apple

MicrosoftSDK

Mobile

Code

Push

Notifications

NoSQL

Collections

Storage

File

SystemSchedulerBackup

System

Data

Connectors

Data Modeler & ConfiguratorBackoffice for App CMS

App

Cloud

Data

Collections

and Offline

Sync

UsersFiles /

ResourcesSocial Advertising

In App

Purchase

Validators

Analytics EventsPlugins and

Extensions

BaaS

Architecture

example

Alcuni BaaS di uso comune

esempio

#simple read

curl --header "secret:secret" -H "Accept: application/json" -H "Content-Type: application/json" -X

GET https://demo.baas.makeitapp.eu/test

#create/update

curl --header "secret:secret" -H "Accept: application/json" -H "Content-Type: application/json" -d

‘{"field1": "ciao mondo"}’ -X POST https://demo.baas.makeitapp.eu/test

#simple filter

curl --header "secret:secret" -H "Accept: application/json" -H "Content-Type: application/json" -X

GET -G https://demo.baas.makeitapp.eu/test --data-urlencode '{"field1": "ciao mondo"}'

…and now code!

Android – iOS chat example

MKAppInstanceMKQuery

MKCollection

MKFileCollection

MKUser

makeitapp.baas android & iOS SDK

makeitapp.baasDroidconMessage

collectionFile collection User collection

DCNMessage

- Sender

- Message

- Attachment

Download demo

www.makeitapp.eu

the first crowdcompany where people can create Apps together!

@giulioroggero, @federicooldrini, @JGiola

join http://goo.gl/8V2OZC to test the App