标签:post sudo parse https ash code serve install name
sudo apt-get install nodejs
需要安装8.x以上的版本
安装mongodb
mkdir -p ~/mongo ~/mongo/db
cd ./mongo/
docker run -p 27017:27017 -v ~/mongo/db:/data/db -d mongo
git clone https://github.com/ParsePlatform/parse-server-example.git
cd ~/parse-server-example
npm install
# vim index.js
var api = new ParseServer({
databaseURI: ‘mongodb://127.0.0.1:27017/dev‘,
cloud: process.env.CLOUD_CODE_MAIN || __dirname + ‘/cloud/main.js‘,
appId: ‘App_ID‘,//加上自己的id
masterKey: ‘Master_Key‘, //Add your master key here. Keep it secret!加上自己的key
serverURL: process.env.SERVER_URL || ‘http://0.0.0.0:1337/parse‘, // Don‘t forget to change to https if needed
liveQuery: {
classNames: ["Posts", "Comments"] // List of classes to support for query subscriptions
}
});
npm install -g parse-dashboard
新建配置文件为dashboard-config.jsons
{
"apps": [
{
"serverURL": "http://SERVER_IP:1337/parse",
"appId": "App_ID",
"masterKey": "Master_Key",
"appName": "App_Name"
}
],
"users": [
{
"user":"username",
"pass":"password"
}
]
}
parse-dashboard --config dashboard-config.jsons --allowInsecureHTTP
标签:post sudo parse https ash code serve install name
原文地址:https://www.cnblogs.com/franzlistan/p/10325771.html