I am moving from Parse to open source Parse Server on Amazon Web Services. I have done the following steps,
- Hosted Parse Server on AWS
- Migrated Parse DB to MongoDB
- Tested that the application is pointing to MongoDB and updating on Mongo DB, while using api.parse.com
The last pending step is pointing my app to AWS Parse Server, instead of the default api.parse.com.
I know this can be achieved my using following step:
https://parse.com/docs/server/guide#using-sdks
The question is,
Where to put the code to update ParseMutableClientConfiguration, should I put it into the first view controller?
Also, what is the swift version of the code.
[Parse initializeWithConfiguration:[ParseClientConfiguration configurationWithBlock:^(id<ParseMutableClientConfiguration> configuration) {
...
configuration.applicationId = @"YOUR_APP_ID";
configuration.clientKey = @"YOUR_APP_CLIENT_KEY";
configuration.server = @"http://localhost:1337/parse";
...
}]];