How to install parse-server

install mongoldb
vim /etc/yum.repos.d/mongodb.repo

[mngodb-org]
name=MongoDB Repository
baseurl=http://mirrors.aliyun.com/mongodb/yum/redhat/7Server/mongodb-org/4.0/x86_64/
gpgcheck=0
enabled=1

yum update
yum -y install mongodb-org
whereis mongod

vim /etc/mongod.conf
modify bindIp: 0.0.0.0

systemctl start mongod.service
systemctl enable mongod.service

install node
curl --silent --location https://rpm.nodesource.com/setup_16.x |bash -
yum remove -y nodejs npm
yum -y install nodejs

upgrade
npm install -g cnpm --registry=https://registry.npm.taobao.org
npm install -g npm@9.6.2

install parse server
npm install -g parse-server parse-dashboard
Parse-server —help
Parse-dashboard —help

vim parse-server.config.json 
{
  "appId": "MYAPPID",
  "masterKey": "MYMASTERKEY",
  "restAPIKey": "MYRESTAPIKEY",
  "databaseURI": "mongodb://localhost:27017/example",
  "port": 9337,
  "serverURL": "http://localhost:9337"
}

nohup parse-server parse-server.config.json &

curl http://localhost:9337/parse/health

posted on 2023-03-25 18:34  IT老友  阅读(20)  评论(0编辑  收藏  举报

导航