Sitemap

How to setup Parse server & Dashboard

2 min readJan 4, 2019

--

Technology we’ll use

Let’s setup mongoDB database on mongoDB Atlas

Press enter or click to view image in full size
Press enter or click to view image in full size
  • Now click on “Create Cluster”
Press enter or click to view image in full size
  • Go to Settings Tab and Add MongoDb Users and set username and password. (Remember it)
  • In Ip Whitelist tab click on Add Ip Address and simply hit Allow Access From Anywhere.

Now We’ll setup parse server and dashboard

Press enter or click to view image in full size
$ express <your-app-name>$ cd <your-app-name>$ npm i
  • Open app.js file and paste following code.
  • Now we need to create .env file in root folder
databaseURI=mongodb+srv://<username>:<password>@<cluster-url>/<cluster-name>appId=<app-id>masterKey=<secrete-key>javascriptKey=<secrete-key>restAPIKey=<secrete-key>serverUrl=localhost:1337appName=<app-name>masterUsername=<username>masterPassword=<password>

Note : You can get databaseURI using connect button on mongoDB Atlas dashboard

Press enter or click to view image in full size
  • Click on Connect Your Application
  • Choose I am using driver 3.6 or later, You will get a databaseURI, paste it in .env file and change necessary variables in it.

Now run following commands

$ npm install dotenv --save$ npm install parse-dashboard --save$ npm install parse-server --save

Run command npm install
We are done here !

Get iNeelPatel’s stories in your inbox

Join Medium for free to get updates from this writer.

Now Let’s run the express app and see if it works,

Press enter or click to view image in full size

You can see “Parse Dashboard” like this.

--

--