Justin James
@digitaldrummerj
Take the confusion out of how to get data
to our mobile application
Reduce the mundane work of creating a REST API
//string
window.localStorage.setItem("name", "Justin");
window.localStorage.getItem("name");
//Complex Object
window.localStorage.setItem("profile", JSON.stringify(data));
JSON.parse(window.localStorage.getItem("profile"));
Realtime
Data
Authentication
Hosting
// Using AngularFire
var projectRef = new Firebase(FirebaseAppUrl);
// get list
var globalProjects= $firebaseArray(projectRef);
// get ID
var rec = globalProjects.$getRecord("foo");
//post
globalProjects.$add(recordOrItem)
//post and put
globalProjects.$save(recordOrItem)
// delete
globalProjects.$remove(recordOrItem)
var ref = globalProjects.$ref();
var project = ref.child(projectId);
tasks.push({});
var ref = globalProjects.$ref();
var taskObj = ref.child(projectId).child('tasks').child(taskKey);
taskObj.set({});
var ref = globalProjects.$ref();
var taskObj = ref.child(projectId).child('tasks').child(taskKey);
taskObj.remove();
Instant Backend in the Cloud
Cloud Server
Free DB
Server Side
Logic
User
Mgmt
return $http ({
method: 'GET',
url: Backand.getApiUrl() + '/1/objects/' + objectName,
params: {
pageSize: 20,
pageNumber: 1,
filter: null,
sort: ''
}
});
Backand.signin(email, password);
Backand.signup(
firstName, lastName,
email, password, confirmPassword);
Backand.signout();
Backand.socialSignIn(provider);
Backand.socialSignUp(provider);
$ npm install -g strongloop
$ slc loopback
$ node .
//Web GUI (No Relationship Support)
$ slc arc
$ slc lookback:datasource
$ slc lookback:model
$ slc loopback:property
$ slc lookback:acl
$ slc loopback:relation
https://docs.strongloop.com/display/public/LB/Command-line+reference
Slides:
http://twitter.com/digitaldrummerj
http://digitaldrummerj.me