Skip to content
Nico Küchler edited this page Apr 29, 2016 · 3 revisions

Parse Setup

Create vagrant instance

edit vagrant file

  • enable config.vm.network "public_network"
  • config.vm.network "forwarded_port", guest: 4040, host: 4040
  • config.vm.network "forwarded_port", guest: 1337, host: 1337
  • start vagrant instance: vagrant up
  • select one of the listed network bridge to make parse server public (prefer WiFi)

prepare for install parse

  • login to vagrant instance with: vagrant ssh
  • sudo -i

Install NodeJS

Install MogoDB

http://www.liquidweb.com/kb/how-to-install-mongodb-on-centos-7/

edit /etc/yum.repos.d/mongodb.repo

[mongodb]
name=MongoDB Repository
baseurl=http://downloads-distro.mongodb.org/repo/redhat/os/x86_64/
gpgcheck=0
enabled=1
  • yum -y update
  • yum -y install mongodb-org mongodb-org-server

Install Parse

  • npm install -g parse-server

Install Parse Dashboard

  • npm install -g parse-dashboard
  • create parse-dashboard-config.json

change ip to yours

{
  "apps": [
    {
      "serverURL": "http://192.168.102.88:1337/parse",
      "appId": "myAppId",
      "masterKey": "myMasterKey",
      "appName": "My Parse Server App",
      "iconName": "MyAppIcon.png"
    }
  ],
  "users": [
    {
      "user":"user",
      "pass":"pass"
    }
  ]
}

Start MongoDB and Parse Tools

  • sudo -i
  • systemctl start mongod
  • parse-server --appId myAppId --masterKey myMasterKey &
  • parse-dashboard --allowInsecureHTTP=1 --config parse-dashboard-config.json &