Created
January 22, 2019 00:58
-
-
Save considine/e3e61763507faae671c1392cd4d37b3b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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