Creating a new Heroku app using Parse Server can be done with a simple button which automates most of the work. A button using the current page on the GitHub repository to control the installation process. The steps below will install Parse Server as an app on Heroku using a MongoDB instance.
- Create an account on Heroku
- Verify the Heroku account by adding a credit card (It will not be charged anything on the free tier.)
- Open the Parse Server page in your web browser
- Click the Install on Heroku buttton
- Follow the instructions to create a new Heroku app
At this point the app is deployed and running on Heroku with a MongDB instance. Next you will want a local copy of the files from the Parse Server repository that you can manage in your own repository. You will push changes to your own origin and also deploy to Heroku using Git to push to a Heroku remote.
- Install the Heroku CLI
- Create an empty repository on GitHub for the new app
- Use the commands below to get a local copy of Parse Server
The commands below use the Heroku CLI and Git to access the app hosted on Heroku as well as put files into the empty repository created in the step above.
heroku git:clone -a MYAPP
cd MYAPP/
git remote add origin https://github.com/ParsePlatform/parse-server-example.git
git pull origin master
git remote set-url origin git@github.com:USERNAME/MYAPP.git
git push
git push heroku master
With the files pushed to your own GitHub repository and the app deployed to Heroku you will now want to be able to pull changes from the upstream occasionally to stay up to date. The commands below will add an upstream, fetch updates and merge to master.
git remote add upstream https://github.com/ParsePlatform/parse-server-example.git
git fetch upstream -v
git merge upstream/master