Adding the Parse Server Backend

View this thread on: d.buzz | hive.blog | peakd.com | ecency.com
·@stoodkev·
0.000 HBD
Adding the Parse Server Backend
![image.png](https://res.cloudinary.com/hpiynhbhq/image/upload/v1514096702/fdtoz7cmbu4k2odrpcuu.png)

I've added an example of backend with Parse Server in the example folder. It can be used to test the LiveQuery and I will show later how to perform additional tasks in the cloud such as beforeSave, afterSave and Jobs for example.

The files I added in [this commit](https://github.com/stoodkev/node-parse-livequery-test/commit/e6e5c718378f8f2b331ffe1ce5fdfb5d49175e56) and [this one](https://github.com/stoodkev/node-parse-livequery-test/commit/f25c482aa4be2ed27f9f11cf847f18cb80aeaaf8) added a server folder in the repository. 
You can go ahead and take that folder out of the repository and then upload it to your Heroku account.

# Launch the Parse Server on your Heroku account
<br>

- Login to your account
- Create a new free App
- [Download and install heroku toolbelt](https://devcenter.heroku.com/articles/heroku-cli)
- [Login to Heroku on the toolbelt](https://devcenter.heroku.com/articles/heroku-cli#getting-started)
- On Heroku website, go to the Deploy tab and follow the instructions to deploy using Git.

![image.png](https://res.cloudinary.com/hpiynhbhq/image/upload/v1514097237/f4xnsrv4plveq18vrrlg.png)

- Create a free mLab database under resources tab > Add-on
- Configure all the Environment Variables you need under Settings > Reveal Config Vars

Make sure to configure the same APP_ID, MASTER_KEY, SERVER_URL and DATABASE_URI in the front end test files and you're good to go! 

Let me know if you have any questions! 

Happy coding and merry christmas!

@stoodkev



<br /><hr/><em>Posted on <a href="https://utopian.io/utopian-io/@stoodkev/adding-the-live-server-backend">Utopian.io -  Rewarding Open Source Contributors</a></em><hr/>
👍 , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,