我可以在 node.js 应用程序中与 Parse-Server 一起使用 Parse-Dashboard 吗?

Can I use Parse-Dashboard in a node.js app alongside Parse-Server?

Parse-Server

Parse-Dashboard

Parse-Server-Example

我分叉了 Parse-Server-Example 以使用 Parse-Server 创建我的新应用程序。

我是节点应用程序的新手,目前还没有很多文档。

是否可以在我的应用程序中使用 Parse-Dashboard,以便用户可以登录并查看数据库?

如果是这样,我将如何配置 index.js 中的仪表板?

能这么简单吗?

var parseDashboard = require('parse-dashboard');

var dash = new parseDashboard( { "serverURL": "http://localhost:1337/parse", "appId": "myAppId", "masterKey": "myMasterKey", "appName": "MyApp" });

如果是这样,我如何导航到仪表板视图?

谢谢

为我工作:

var ParseServer = require('parse-server').ParseServer;
var ParseDashboard = require('parse-dashboard');
...
// Added near the end of the file after the createLiveQueryServer
// Try to setup the dashboard
var config = {
  "apps": [
    {
      "serverURL": "yourparsedomain" + mountPath,
      "appId": "YOUR_APP_ID",
      "masterKey": "YOUR_MASTER_KEY",
      "javascriptKey": "YOUR_JAVASCRIPT_KEY",
      "restKey": "YOUR_REST_KEY",
      "appName": "YOUR_APP_NAME",
      "appNameForURL": "uniquename",
      "production": true
    }
  ],
  "users": [
    {
      "user":"user1",
      "pass":"pass1"
    },
    {
      "user":"user2",
      "pass":"pass2"
    }
  ]
};
var allowInsecureHTTP = false;
var dash = ParseDashboard(config, allowInsecureHTTP);
app.use('/dash', dash);