Parse Server is designed to be mounted on an Express application that is a web framework for Node.js.
ACL | createdAt | objectId | updatedAt |
---|---|---|---|
There is no data in this class. |
Parse server has been designed to be mounted on an express application, which is a web-based framework for Node.js. While, the simplest way to get started with this is by cloning the parse server repo, which is containing a sample Express application at its root with a mounted parse API. The constructer will return an API object which will confirm an Express middleware. Then this object will bring REST endpoints for your parse application.
Follow the following method to create an instance
var api = new ParseServer({
databaseURI: 'mongodb://your.mongo.uri',
cloud: './cloud/main.js',
appId: 'myAppId',
fileKey: 'myFileKey',
masterKey: 'mySecretMasterKey',
push: { ... }, // See the Push wiki page
filesAdapter: ...,
});
Parameters Parameters here are as:
var app = express();
var api = new ParseServer({ ... });
// Serve the Parse API at /parse URL prefix
app.use('/parse', api);
var port = 1337;
app.listen(port, function() {
console.log('parse-server-example running on port ' + port + '.');
});
This will let you have a parse server which is running on the port 1337 while service Parse API at /parse.