-
Notifications
You must be signed in to change notification settings - Fork 56
Parse Server
Nico Küchler edited this page Apr 29, 2016
·
3 revisions
- install vagrant https://www.vagrantup.com/downloads.html
- change to target folder where your vagrant instance for parse should be stored
- use centos 7: vagrant init centos/7
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
- curl --silent --location https://rpm.nodesource.com/setup_4.x | bash -
- yum -y install nodejs
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
- npm install -g parse-server
- 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"
}
]
}
- sudo -i
- systemctl start mongod
- parse-server --appId myAppId --masterKey myMasterKey &
- parse-dashboard --allowInsecureHTTP=1 --config parse-dashboard-config.json &