Skip to content

Instantly share code, notes, and snippets.

@philosopherdog
Last active June 8, 2016 18:31
Show Gist options
  • Save philosopherdog/ef38a76e309073aa11f9b1538fb30969 to your computer and use it in GitHub Desktop.
Save philosopherdog/ef38a76e309073aa11f9b1538fb30969 to your computer and use it in GitHub Desktop.
Install Parse to Heroku
Install Parse to Heroku
@philosopherdog
Copy link
Author

Install Parse To Heroku

  • Go here and click the purple button
  • Login to Heroku or create an account.
  • Fill the app_id, and master_key .
  • Add your appname to the url

e.g. http://mycoolapp.herokuapp.com/parse

  • Here I added my app name mycoolapp to the url
  • Click deploy.
  • Go to this url to install the parse sdk to a project and test whether everything is wired up.
  • I prefer to do a pod install on the parse sdk
  1. type pod init in terminal from the root of your new project

  2. paste pod 'Parse'

  3. type pod install in terminal after pod init

  4. close your project and open it from the workspace

  5. if using Swift then you need to create a bridging header by first creating a cocoatouch objective c class and accepting the prompt to create a bridging header.

  6. delete the cocoatouch files

  7. add your import into the bridging header #import <Parse/Parse.h>

  8. follow the quickstart instructions for creating an object here

  9. Add the key App Transport Security Settings to the info.plist file. It should be dictionary.

  10. Add the value Allow Arbitrary Loads, which is a Boolean and make it YES

  11. Run the app.

  12. Check the mongo db by clicking on mLab MongoDB :: Mongodb link in the heroku dashboard

  13. The link will probably fail. So, just delete the last part of the path starting with heroku_... and you should see your data

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment