-
Notifications
You must be signed in to change notification settings - Fork 472
Parse Server with Back4App Quick Start
charlie-codepath edited this page Oct 31, 2022
·
11 revisions
A quick start guide to setting up a Parse server hosted on Back4App
- 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.
- "Cancel" or "Next" at "Onboarding" flow for a brief dashboard orientation.
- There isn't any data to see yet, but this is where all your Parse user's and objects will be displayed.
- 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.
- You'll reference the "Application ID" and "Client Key" when configuring the Parse SDK in your Xcode project.
-
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.swift
file. (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).⚠️ NOTE: The snippet shown in the Parse docs also includes theapplication: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
,parseClientKey
andparseServerUrlString
strings with the actual values from your Parse server found in the Dashboard - App Settings