SlideShare a Scribd company logo
Playing with parse.com
Building an app called Qoffee
Andrea De Gaetano
My Blog: http://pestohacks.blogspot.com
Twitter: @dega1999
the app: www.qoffee.it
Interests: #mobile #security #linux #robots #drones #parkour #ara
What is Parse?
Backend as a service
Bought in 2013 by Facebook
SDK for all the major client platforms:
android, ios, windows, unity3d, php,
iot… blablabla!
Useful to build multi-platform apps
Simplify APP development
“””Free”””(*)
Made with Go (previously ruby), C++,
Javascript
What is Qoffee?
My side project
An app that helps people to
find the best coffee in town
keep track of Coffee consumption
With Achievements
Test Parse.com is one of the reason behind this app
The app is available on Play Store and Amazon App Store
https://play.google.com/store/apps/details?
id=com.andrea.degaetano.coffelover
What we will see:
Platform Tools Overview
Getting started on Android
Build a Multiple-Login screen
Fetch Cloud Data from your Android App
Build API with Cloud Code
Schedule Tasks
Testo
Platform Tools
Android: Getting Started
Create an account
Create an App on parse.com
Get App keys (in settings)
Download the template APP
Import the project in Android Studio
You need to create Facebook and Twitter App to use “social”
login
Template: https://github.com/ParsePlatform/ParseUI-Android
Social-Login Screen
Specify the following in res/values/strings.xml of each sample
project:
parse_app_id and parse_client_key
facebook_app_id
twitter_consumer_key and twitter_consumer_secret
Your users will be recorded in a “User” table on Cloud Data
New User creation is already implemented
Email password recovery is already implemented (customizable)
Login Screenshots
https://github.com/ParsePlatform/ParseUI-Android
Connect with Parse Cloud
ParseObject is the class representing a single row in a table
in the cloud:
You can pass any supported cloud data type: number,
binary files, coordinates, string…
You can view the created data on your parse page
Connect with Parse Cloud
ParseQuery is the class to retrieve data from the cloud:
You can add constraint with where clause to ParseQuery like:
• whereGreaterThan(String key, Object value)
• whereExists(String key)
• whereStartsWith(String key, String prefix)
• whereWithinKilometers(String k, ParseGeoPoint p, double maxDistance)
• whereEqualTo(String key, Object value)
ListView —> ParseQueryAdapter
To display a list of objects you can:
build your own adapter and use ParseQuery
use the ParseQueryAdapter
ParseQueryAdapter paginate results by default
You can customize the layout
Cloud Code
All the advantages of the service side code:
expose API
simplify multiplatform support
change app behavior anytime
validate pre and post data creation:
BeforeSave(object): 3 secs timeout
AfterSave (object): 3 secs timeout
The language is Javascript: based on backbone.js
Function should finish in 15 seconds.
Cloud Code: function example
Cloud Code: beforesave example
Cloud Code
ParseQuery typical function used:
first: retrieve the first object of a query
each: call a callback for each found record
find: list of objects that satisfies the query
…
Query are limited to a max of 1000 results (default is 100)
More requests you do —> More money you need!
Cloud Code
You use a terminal tool to upload new code: parse deploy
You can chain multiple operations with Promise
Hard to debug -> upload code, run and watch the results on the log
At least there’s a static analyzer checker
You can add external javascript library to your project:
underscore.js
sax.js
xmlreader.js
never work out of the box! :D
Cloud Code: tool
Schedule Task
The code is similar to cloud code, except for the functions
declaration
Necessary for long running task
The job functions require to return status.success o
status.error
You need to register the task with the platform
Debug —> Log
Schedule Task: configuration
Schedule Task: rss parsing example
Thanks you!
Andrea De Gaetano
My Blog: http://pestohacks.blogspot.com
Twitter: @dega1999
the app: www.qoffee.it
Interests: #mobile #security #linux #robots #drones #parkour #ara

More Related Content

PDF
Fluentd v0.12 master guide
PPT
Intoduction to Play Framework
ODP
dJango
PDF
Rest api with Python
PDF
Dart Workshop
PPT
Adam Peller Interoperable Ajax Tools And Mashups
PPT
Apache Ant
PPT
Ant - Another Neat Tool
Fluentd v0.12 master guide
Intoduction to Play Framework
dJango
Rest api with Python
Dart Workshop
Adam Peller Interoperable Ajax Tools And Mashups
Apache Ant
Ant - Another Neat Tool

What's hot (20)

PDF
Djangocon 2014 - Django REST Framework - So Easy You Can Learn it in 25 Minutes
PPT
JBUG 11 - Django-The Web Framework For Perfectionists With Deadlines
PDF
Your First Scala Web Application using Play 2.1
PPTX
Apache Ant
PDF
What To Expect From PHP7
PPTX
When Enterprise Java Micro Profile meets Angular
PDF
Introduction to Django REST Framework, an easy way to build REST framework in...
PDF
Python RESTful webservices with Python: Flask and Django solutions
PPTX
Wt unit 4
PPT
Apache Ant
PDF
Tornadoweb
PPT
jQuery with javascript training by Technnovation Labs
PDF
Mobile Open Day: React Native: Crossplatform fast dive
PPTX
Wt unit 3
PPT
Laurens Van Den Oever Xopus Presentation
ODP
What's new in Java EE 6
PDF
BUILDING MODERN PYTHON WEB FRAMEWORKS USING FLASK WITH NEIL GREY
PPTX
Tornado - different Web programming
PDF
Web services with laravel
PPTX
Flask restfulservices
Djangocon 2014 - Django REST Framework - So Easy You Can Learn it in 25 Minutes
JBUG 11 - Django-The Web Framework For Perfectionists With Deadlines
Your First Scala Web Application using Play 2.1
Apache Ant
What To Expect From PHP7
When Enterprise Java Micro Profile meets Angular
Introduction to Django REST Framework, an easy way to build REST framework in...
Python RESTful webservices with Python: Flask and Django solutions
Wt unit 4
Apache Ant
Tornadoweb
jQuery with javascript training by Technnovation Labs
Mobile Open Day: React Native: Crossplatform fast dive
Wt unit 3
Laurens Van Den Oever Xopus Presentation
What's new in Java EE 6
BUILDING MODERN PYTHON WEB FRAMEWORKS USING FLASK WITH NEIL GREY
Tornado - different Web programming
Web services with laravel
Flask restfulservices
Ad

Viewers also liked (11)

PDF
Java 9 by Alessio Stalla
PPTX
JMeter
PDF
REST con Jersey
PDF
Sviluppare applicazioni android
PDF
AngularJS: How to code today with tomorrow tools - Codemotion Milan 2013
PPTX
EIP with Apache Camel
PDF
Server Day 2009: Spring dm Server by Alef Arendsen
PDF
LINQ, Entities Framework & ORMs
PPTX
C# Chat for Windows: Network infrastructure + file sharing + clipboard sharin...
PPTX
Introduction to C#
PPTX
Java 9 by Alessio Stalla
JMeter
REST con Jersey
Sviluppare applicazioni android
AngularJS: How to code today with tomorrow tools - Codemotion Milan 2013
EIP with Apache Camel
Server Day 2009: Spring dm Server by Alef Arendsen
LINQ, Entities Framework & ORMs
C# Chat for Windows: Network infrastructure + file sharing + clipboard sharin...
Introduction to C#
Ad

Similar to Playing with parse.com (20)

PDF
Node.js and Parse
PDF
Building Android apps with Parse
PPTX
Leveraging parse.com for Speedy Development
PDF
Parse cloud code
PDF
Parse par Nicolas Lauquin
PDF
Parse: A Mobile Backend as a Service (MBaaS)
PPTX
Intro to Parse
PDF
Making connected apps with BaaS (Droidcon Bangalore 2014)
PDF
Workshop: building your mobile backend with Parse - Droidcon Paris2014
PPTX
Parse, scale to millions
PDF
第一次用Parse就深入淺出
PDF
Parse com alternatives
PDF
Introduction to GraphQL for beginners
PPTX
Parse.com - iLAB Tech Understanding
KEY
CouchDB on Android
PDF
From rest api to graph ql a 10 year journey
PDF
Starting from scratch in 2017
PDF
Parse Heroku for Mobiles
PDF
GraphQL: Enabling a new generation of API developer tools
PDF
Firebase: Totally Not Parse All Over Again (Unless It Is) (CocoaConf San Jose...
Node.js and Parse
Building Android apps with Parse
Leveraging parse.com for Speedy Development
Parse cloud code
Parse par Nicolas Lauquin
Parse: A Mobile Backend as a Service (MBaaS)
Intro to Parse
Making connected apps with BaaS (Droidcon Bangalore 2014)
Workshop: building your mobile backend with Parse - Droidcon Paris2014
Parse, scale to millions
第一次用Parse就深入淺出
Parse com alternatives
Introduction to GraphQL for beginners
Parse.com - iLAB Tech Understanding
CouchDB on Android
From rest api to graph ql a 10 year journey
Starting from scratch in 2017
Parse Heroku for Mobiles
GraphQL: Enabling a new generation of API developer tools
Firebase: Totally Not Parse All Over Again (Unless It Is) (CocoaConf San Jose...

More from JUG Genova (8)

PDF
Lcds & Blaze Ds by Corneliu Creanga
PDF
Flex Air Intro
PDF
Server Day 2009: Oracle/Bea Fusion Middleware by Paolo Ramasso
PDF
Server Day 2009: GlassFish 3 by Alexis Moussine-Pouchkine
PDF
Server Day 2009: JBoss 5.0 by Alessio Soldano
PDF
Java IDE Day 2008 - Introduction by JUG Genova
PDF
Java Ide Day 2008 - Presentation on JDeveloper by Paolo Ramasso
PDF
Java Ide Day 2008 - Presentation on Intelli J Idea by Vaclav Pech
Lcds & Blaze Ds by Corneliu Creanga
Flex Air Intro
Server Day 2009: Oracle/Bea Fusion Middleware by Paolo Ramasso
Server Day 2009: GlassFish 3 by Alexis Moussine-Pouchkine
Server Day 2009: JBoss 5.0 by Alessio Soldano
Java IDE Day 2008 - Introduction by JUG Genova
Java Ide Day 2008 - Presentation on JDeveloper by Paolo Ramasso
Java Ide Day 2008 - Presentation on Intelli J Idea by Vaclav Pech

Recently uploaded (20)

PDF
PTS Company Brochure 2025 (1).pdf.......
PPTX
ManageIQ - Sprint 268 Review - Slide Deck
PPTX
Agentic AI Use Case- Contract Lifecycle Management (CLM).pptx
PPTX
ai tools demonstartion for schools and inter college
PDF
SAP S4 Hana Brochure 3 (PTS SYSTEMS AND SOLUTIONS)
PDF
Design an Analysis of Algorithms II-SECS-1021-03
PDF
Which alternative to Crystal Reports is best for small or large businesses.pdf
PDF
Design an Analysis of Algorithms I-SECS-1021-03
PDF
Digital Strategies for Manufacturing Companies
PPTX
L1 - Introduction to python Backend.pptx
PPTX
VVF-Customer-Presentation2025-Ver1.9.pptx
PDF
Claude Code: Everyone is a 10x Developer - A Comprehensive AI-Powered CLI Tool
PPTX
Transform Your Business with a Software ERP System
PDF
Internet Downloader Manager (IDM) Crack 6.42 Build 41
PDF
System and Network Administration Chapter 2
PPTX
Oracle E-Business Suite: A Comprehensive Guide for Modern Enterprises
PDF
Wondershare Filmora 15 Crack With Activation Key [2025
PDF
Softaken Excel to vCard Converter Software.pdf
PPTX
Odoo POS Development Services by CandidRoot Solutions
PDF
Adobe Illustrator 28.6 Crack My Vision of Vector Design
PTS Company Brochure 2025 (1).pdf.......
ManageIQ - Sprint 268 Review - Slide Deck
Agentic AI Use Case- Contract Lifecycle Management (CLM).pptx
ai tools demonstartion for schools and inter college
SAP S4 Hana Brochure 3 (PTS SYSTEMS AND SOLUTIONS)
Design an Analysis of Algorithms II-SECS-1021-03
Which alternative to Crystal Reports is best for small or large businesses.pdf
Design an Analysis of Algorithms I-SECS-1021-03
Digital Strategies for Manufacturing Companies
L1 - Introduction to python Backend.pptx
VVF-Customer-Presentation2025-Ver1.9.pptx
Claude Code: Everyone is a 10x Developer - A Comprehensive AI-Powered CLI Tool
Transform Your Business with a Software ERP System
Internet Downloader Manager (IDM) Crack 6.42 Build 41
System and Network Administration Chapter 2
Oracle E-Business Suite: A Comprehensive Guide for Modern Enterprises
Wondershare Filmora 15 Crack With Activation Key [2025
Softaken Excel to vCard Converter Software.pdf
Odoo POS Development Services by CandidRoot Solutions
Adobe Illustrator 28.6 Crack My Vision of Vector Design

Playing with parse.com

  • 1. Playing with parse.com Building an app called Qoffee Andrea De Gaetano My Blog: http://pestohacks.blogspot.com Twitter: @dega1999 the app: www.qoffee.it Interests: #mobile #security #linux #robots #drones #parkour #ara
  • 2. What is Parse? Backend as a service Bought in 2013 by Facebook SDK for all the major client platforms: android, ios, windows, unity3d, php, iot… blablabla! Useful to build multi-platform apps Simplify APP development “””Free”””(*) Made with Go (previously ruby), C++, Javascript
  • 3. What is Qoffee? My side project An app that helps people to find the best coffee in town keep track of Coffee consumption With Achievements Test Parse.com is one of the reason behind this app The app is available on Play Store and Amazon App Store https://play.google.com/store/apps/details? id=com.andrea.degaetano.coffelover
  • 4. What we will see: Platform Tools Overview Getting started on Android Build a Multiple-Login screen Fetch Cloud Data from your Android App Build API with Cloud Code Schedule Tasks
  • 6. Android: Getting Started Create an account Create an App on parse.com Get App keys (in settings) Download the template APP Import the project in Android Studio You need to create Facebook and Twitter App to use “social” login Template: https://github.com/ParsePlatform/ParseUI-Android
  • 7. Social-Login Screen Specify the following in res/values/strings.xml of each sample project: parse_app_id and parse_client_key facebook_app_id twitter_consumer_key and twitter_consumer_secret Your users will be recorded in a “User” table on Cloud Data New User creation is already implemented Email password recovery is already implemented (customizable)
  • 9. Connect with Parse Cloud ParseObject is the class representing a single row in a table in the cloud: You can pass any supported cloud data type: number, binary files, coordinates, string… You can view the created data on your parse page
  • 10. Connect with Parse Cloud ParseQuery is the class to retrieve data from the cloud: You can add constraint with where clause to ParseQuery like: • whereGreaterThan(String key, Object value) • whereExists(String key) • whereStartsWith(String key, String prefix) • whereWithinKilometers(String k, ParseGeoPoint p, double maxDistance) • whereEqualTo(String key, Object value)
  • 11. ListView —> ParseQueryAdapter To display a list of objects you can: build your own adapter and use ParseQuery use the ParseQueryAdapter ParseQueryAdapter paginate results by default You can customize the layout
  • 12. Cloud Code All the advantages of the service side code: expose API simplify multiplatform support change app behavior anytime validate pre and post data creation: BeforeSave(object): 3 secs timeout AfterSave (object): 3 secs timeout The language is Javascript: based on backbone.js Function should finish in 15 seconds.
  • 15. Cloud Code ParseQuery typical function used: first: retrieve the first object of a query each: call a callback for each found record find: list of objects that satisfies the query … Query are limited to a max of 1000 results (default is 100) More requests you do —> More money you need!
  • 16. Cloud Code You use a terminal tool to upload new code: parse deploy You can chain multiple operations with Promise Hard to debug -> upload code, run and watch the results on the log At least there’s a static analyzer checker You can add external javascript library to your project: underscore.js sax.js xmlreader.js never work out of the box! :D
  • 18. Schedule Task The code is similar to cloud code, except for the functions declaration Necessary for long running task The job functions require to return status.success o status.error You need to register the task with the platform Debug —> Log
  • 20. Schedule Task: rss parsing example
  • 21. Thanks you! Andrea De Gaetano My Blog: http://pestohacks.blogspot.com Twitter: @dega1999 the app: www.qoffee.it Interests: #mobile #security #linux #robots #drones #parkour #ara