How to Install Parse Server on CentOS 7

Parse Server is the open source alternative for the Parse backend service which is being shut down. If you are a fan of this service, you can still enjoy the same experience by deploying Parse Server on your own server.

This article will guide you through the process of installing Parse Server on a CentOS 7 machine.


  • A CentOS 7 x64 server instance.
  • A sudo user.

Step 1: Update the system

Open an SSH terminal, log into your server as a sudo user, and then use the below commands to update the system to the latest stable status:

sudo yum install epel-release -ysudo yum update -ysudo shutdown -r now

After the system starts up again, log in back as the same sudo user to move on.

Step 2: Install Node.js

Install the latest Node.js 6.x as follows, which is 6.9.4 at the time of writing:

cdcurl --silent --location | sudo bash -sudo yum install -y nodejs

Step 3: Install MongoDB Server

Create the MongoDB 3.4 YUM repo by copying the entire code segment below into your SSH terminal, and then pressing Enter:

cat <<EOF | sudo tee -a /etc/yum.repos.d/mongodb-org-3.4.repo[mongodb-org-3.4]name=MongoDB Repositorybaseurl=

Use the following commands to install and start the latest stable release of MongoDB Server, which is 3.4.1 at the time of writing:

sudo yum install -y mongodb-orgsudo systemctl start mongod.servicesudo systemctl enable mongod.service

Step 4: Install Parse Server

Install the latest Parse Server, which is 2.3.2 at the time this article was written, as follows:

sudo yum install git -ycd /optsudo git clone parse-serversudo npm install -g parse-server mongodb-runner

Step 5: Start Parse Server

Before you can use Parse Server, you need to setup two parameters (appId and masterKey) for authentication.

Assuming that:

  • appId = 462s45ze2vn6x2vrfyfenqmksngx5xbs
  • masterKey = kcr454f9xgq3bpdbhwuy4umamekk3n7f

Start Parse Server as follows:

mongodb-runner startparse-server --appId 462s45ze2vn6x2vrfyfenqmksngx5xbs --masterKey kcr454f9xgq3bpdbhwuy4umamekk3n7f --databaseURI mongodb://localhost/test

The output should resemble:

appId: 462s45ze2vn6x2vrfyfenqmksngx5xbsmasterKey: ***REDACTED***port: 1337host: mongodb://localhost/testmountPath: /parsemaxUploadSize: 20mbuserSensitiveFields: emailserverURL: http://localhost:1337/parse[13831] parse-server running on http://localhost:1337/parse

That’s it. A stand-along version of Parse Server has been successfully deployed on your machine.

Step 6: Test Parse Server

Before you can move on, you need to open a new SSH terminal console window in order to keep Parse Server running in the current one.

In the new SSH teminal console window, send data to the MongoDB database as below:

curl -X POST /-H "X-Parse-Application-Id: 462s45ze2vn6x2vrfyfenqmksngx5xbs" /-H "Content-Type: application/json" /-d '{"score":1337,"InventoryName":"Desktops","cheatMode":false}' /http://localhost:1337/parse/classes/Inventory

You should get a response which is similar to:


Then you can retrieve the data using the following command:

curl -X GET /-H "X-Parse-Application-Id: 462s45ze2vn6x2vrfyfenqmksngx5xbs" /http://localhost:1337/parse/classes/Inventory/meNcfQ6JJJ

This time, you should get a response which is similar to:


That concludes our tutorial. Thanks for reading.

Want to contribute?

You could earn up to $300 by adding new articles

Submit your article
Suggest an update
Request an article

No comments

Powered by Blogger.