On this page
Parse Server with Back4App Quick Start
Overview
A quick start guide to setting up a Parse server hosted on Back4App
Sign up
- Go to Back4App and choose a âSign upâ option. The following example shows the âSign up with GitHubâ flow. Make sure youâre signed in to GitHub with the account you want to use with Back4App.

- Authorize with GitHub

- âSkipâ or âContinueâ through the âWelcomeâ flow.

- Name your server app.

Dashboard
- âCancelâ or âNextâ at âOnboardingâ flow for a brief dashboard orientation.

Database
- There isnât any data to see yet, but this is where all your Parse users and objects will be displayed.

App Settings
General
- This is where general info about your app is displayed.
- Youâll reference the âParse API Addressâ when configuring the Parse SDK in your Xcode project.

Security & Keys
- Youâll reference the âApplication IDâ and âClient Keyâ when configuring the Parse SDK in your Xcode project.

Configure and initialize the Parse SDK in Xcode
-
Visit the Parse iOS Docs - Getting Started Tab and scroll down to the section titled âInitialise Parse SDKâ
-
In the code snippet, tap the âSwiftâ button to toggle the snippet to show in Swift.
-
As the description mentions, youâll need to configure the Parse SDK in the
application:didFinishLaunchingWithOptions:method of your appâsAppDelegate.swiftfile. (This is a common place for initializing stuff in your app since this method is called very early in the appâs lifecycle, right after your app initializes itself).- â ïž Make sure you
import ParseCorein any file you want to use Parse. In this case, at the top of theAppDelegate. - â ïž The snippet shown in the Parse docs also includes the
application:didFinishLaunchingWithOptions:method, however that method is already provided by default in the app delegate. So you only need to reference the part related to the configuration and initialization of Parse. Add that inside theapplication:didFinishLaunchingWithOptions:that already exists in theAppDelegate.
let parseConfig = ParseClientConfiguration { $0.applicationId = "parseAppId" $0.clientKey = "parseClientKey" $0.server = "parseServerUrlString" } Parse.initialize(with: parseConfig)- Youâll need to replace the
parseAppId,parseClientKeyandparseServerUrlStringstrings with the actual values from your Parse server found in the Dashboard - App Settings
- â ïž Make sure you
Test and confirm your server and app setup
- To test if your app is able to communicate with your Parse server, try creating and saving a parse object in your app, and verifying that the object appears in the Dashboard on your Parse server.
- Visit the Parse iOS Docs - Saving Objects tab, and check out the example snippet for saving a Parse Object (aka
PFObject). - As the docs mention, creating and setting keys and values on a
PFObjectis quite similar to working with a SwiftDictionary. - Add the save object snippet right after you initialize the Parse SDK in order to test it.
- Feel free to switch up any of the keys and values to help prove to yourself that things are really working as expected. Itâs also helpful to add print statements in the case of success or errors.
let gameScore = PFObject(className:"GameScore") gameScore["score"] = 5000 gameScore["playerName"] = "Kingsley đ¶" gameScore["cheatMode"] = true gameScore.saveInBackground { success, error in if success { print("đ©âđŹâ SUCCESS! Parse object saved") } else if let error = error { print("đ©âđŹâ Error saving Parse object: \(error.localizedDescription)") } else { print("đ©âđŹâ Unknown error saving Parse object") } } - Run your app and check the Xcode console to see if the save was a success.
- For the final proof, head to your Parse Server Dashboard and verify that your PFObject was successfully saved in the Database section.
