Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Appacitive talk at 17th BlrDroid Meetup in Bang...

Appacitive talk at 17th BlrDroid Meetup in Bangalore.

Building a scalable mobile app backend using Appacitive.
Talk at the 17 BlrDroid meetup at Bangalore.

Avatar for Nikhil Prasad

Nikhil Prasad

February 23, 2013
Tweet

Other Decks in Technology

Transcript

  1. Agenda Introduction •  Problem statement •  Our solution Overview • 

    Terminology •  Graph representation •  Some examples •  Platform walkthrough FIRST SECOND THIRD Creating a geo located photo app •  Features / Server side •  Code walkthrough
  2. What do we do? “Help developers build awesome apps by

    eliminating the need to build & manage complex backend infrastructure..”
  3. Terminology metadata schema – definition of a data type (e.g.

    user) relation – definition of a business relationship between two schemas (e.g. friend) actual data article – an instance of a schema connection – an instance of a relation.
  4. name: Saturn type: titan name: Jupiter type: god name: Pluto

    type: god name: Neptune type: god name: Hercules type: god name: Cerebrus type: monster name: Alceme type: god A graph data model father father brother brother pet mother battled times: 12 Ref: http://www.slideshare.net/knowfrominfo/titan-big-graph-data-with-cassandra#btnNext
  5. name: Marvel type: brand name:Avengers type: movie name: Iron Man

    type: movie name: Top Gun type: movie name: Robert Downey Jr. type: actor text: Cool movie! rating: 4 type: review name: Tom Cruise type: actor Some examples brand actor review friend actor
  6. features q user registration q login q login with facebook q location specific photos

    q posting a photo q user specific photos Setting up the back end
  7. •  User schema already available inbuilt •  SDK already supports

    all relevant methods •  No additional code needed. User registration (feature 1 / 6)
  8. User login (feature 2 / 6) •  Authentication on existing

    user schema supported out of the box. •  All relevant methods available in SDK
  9. Login with facebook (feature 3/6) •  Login and user registration

    with facebook and twitter already supported on platform. •  SDK already supports all relevant methods
  10. Location specific photos (feature 4/6) •  Types containing geography(latitude, longitude)

    properties automatically support location search. •  Add a property ‘geolocation’ in photo is of type geography •  Feature implemented as radial search within 50 mi of phone location
  11. Posting a photo (feature 5/6) •  Use inbuilt file upload

    support. •  Upload new file and generate a public url for the same. •  Use phone gps to resolve location and google to reverse geolocate the location to an address. •  Create a photo article corresponding to the file and store the public url in it along with the location and resolved address.
  12. User specific photos (feature 6/6) •  ‘user_photo’ relation between user

    and photo to link a user with his photos. Connection created at the time of upload. •  X’s photos are same as “all photos connected to user X with a relation of type user_photo”. •  Use graph query for run this query.
  13. Getting started •  Sign-up for beta access @ www.appacitive.com. • 

    Download SDKs from www.github.com/appacitive •  Visit appacitive.github.com for documentations and quick starts.