forked from dplewis/parse-server-test
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathserver.js
More file actions
56 lines (47 loc) · 1.13 KB
/
server.js
File metadata and controls
56 lines (47 loc) · 1.13 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
var express = require('express');
var ParseServer = require('parse-server').ParseServer;
var app = express();
var api = new ParseServer({
appName: "MyTestApp",
appId: "app-id-here",
masterKey: "master-key-here",
databaseURI: "mongodb://localhost/test",
cloud: __dirname + "/cloud-code.js",
publicServerURL: "http://localhost:1337/parse",
verbose: true,
push: {
android: {
senderId: "blank-sender-id",
apiKey: "not-a-real-api-key"
}
},
emailAdapter: {
module: "@parse/simple-mailgun-adapter",
options: {
apiKey: "not-a-real-api-key",
domain: "example.com",
fromAddress: "example@example.com"
}
},
auth: {
twitter: {
consumer_key: "not_a_real_consumer_key",
consumer_secret: "not_a_real_consumer_secret"
},
facebook: {
appIds: "not_a_real_facebook_app_id"
}
},
liveQuery: {
classNames: [
"TestObject",
"_User"
]
}
});
// Serve the Parse API on the /parse URL prefix
app.use('/parse', api);
const port = 1337;
app.listen(port, function() {
console.log('[ parse-server-test running on port ' + port + ' ]');
});