Introduction to Parse
Upcoming SlideShare
Loading in...5
×

Like this? Share it with your network

Share

Introduction to Parse

  • 2,080 views
Uploaded on

An overview of the mobile backend service Parse with sample code snippets.

An overview of the mobile backend service Parse with sample code snippets.

More in: Technology
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Be the first to comment
No Downloads

Views

Total Views
2,080
On Slideshare
1,797
From Embeds
283
Number of Embeds
3

Actions

Shares
Downloads
21
Comments
0
Likes
1

Embeds 283

http://mullassery.com 280
http://posterous.com 2
http://abeymm.tumblr.com 1

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
    No notes for slide
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n

Transcript

  • 1. Introduction to Parse
  • 2. AbeyMullasseryInternet & Mobile Developer
  • 3. Why?
  • 4. Why?• Focus on the app• Cheap enough• Different skill set• Export/Import
  • 5. Why not
  • 6. Why not• Backend Computation• Complex data model• 3rd party services
  • 7. iOS, Android & REST
  • 8. Data
  • 9. Data• Powerful query• Associations• Big File• Access Control
  • 10. // Create a new Parse objectPFObject *post = [PFObject objectWithClassName:@"Post"];[post setObject:@"Hello World" forKey:@"title"];[post setObject:user forKey:@"author"];// Save it to Parse[post saveEventually];[user setObject incrementKey:@"posts"];[user saveEventually];PFQuery *query = [PFQuery queryWithClassName:@"Posts"];[query whereKey:@"author_name" equalTo:@"Abey Mullassery"];NSArray* posts = [query findObjects];
  • 11. NSData *data = UIImageJPEGRepresentation(image, 0.60);PFFile *file = [PFFile fileWithName:@"photo.jpg"data:data];[file saveInBackground];
  • 12. Users
  • 13. Users• Sign up and Login Interface• Facebook & Twitter• Password reset• Email verification
  • 14. // Initialize the user objectPFUser *user = [PFUser user];user.username = @"abey";user.password = @"N0th1ngM@tters";[user signUpInBackgroundWithBlock:^(BOOL succeeded, NSError*error) { if (!error) { // Hooray! Let them use the app now. } else { NSString *errorString = [[error userInfo]objectForKey:@"error"]; // Show the error and let the user try again. }}];
  • 15. Location
  • 16. Location• Built-in class• Spatial search
  • 17. PFGeoPoint *point = [PFGeoPoint geoPointWithLatitude:40.0 longitude:-30.0];[user setObject:point forKey:@"location"];[user saveInBackground];
  • 18. Push Notifications
  • 19. Push Notifications• Send from app• Subscribe to Channels• Send to Channels
  • 20. // Subscribe to a push channel[PFPush subscribeToChannelInBackground:@"new_users"];// Push to the channel from the client[PFPush sendPushMessageToChannelInBackground:@"new_users"withMessage:@"A new user signed up!"];
  • 21. Questions?
  • 22. Thank you