Skip to content

Instantly share code, notes, and snippets.

@considine
Created January 22, 2019 00:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save considine/e3e61763507faae671c1392cd4d37b3b to your computer and use it in GitHub Desktop.
Save considine/e3e61763507faae671c1392cd4d37b3b to your computer and use it in GitHub Desktop.
var express = require('express');
var ParseServer = require('parse-server').ParseServer;
var ParseDashboard = require('parse-dashboard');
var api = new ParseServer({
// Parse Server settings
});
var options = { allowInsecureHTTP: false };
var dashboard = new ParseDashboard({
// Parse Dashboard settings
}, options);
var app = express();
// make the Parse Server available at /parse
app.use('/parse', api);
// make the Parse Dashboard available at /dashboard
app.use('/dashboard', dashboard);
var httpServer = require('http').createServer(app);
httpServer.listen(4040);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment