FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
parse-server/bin/parse-server at master · mabowgithub/parse-server · GitHub
mabowgithub
/
parse-server
Public
forked from
parse-community/parse-server
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
parse-server
/
bin
/
parse-server
Copy path
More file actions
More file actions
Latest commit
History
History
History
executable file
·
42 lines (33 loc) · 1.36 KB
Breadcrumbs
parse-server
/
bin
/
parse-server
Copy path
File metadata and controls
executable file
·
42 lines (33 loc) · 1.36 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
#!/usr/bin/env node
var
express
=
require
(
'express'
)
;
var
ParseServer
=
require
(
"../src/index"
)
.
ParseServer
;
var
app
=
express
(
)
;
var
options
=
{
}
;
if
(
process
.
env
.
PARSE_SERVER_OPTIONS
)
{
options
=
JSON
.
parse
(
process
.
env
.
PARSE_SERVER_OPTIONS
)
;
}
else
{
options
.
databaseURI
=
process
.
env
.
PARSE_SERVER_DATABASE_URI
;
options
.
cloud
=
process
.
env
.
PARSE_SERVER_CLOUD_CODE_MAIN
;
options
.
collectionPrefix
=
process
.
env
.
PARSE_SERVER_COLLECTION_PREFIX
;
// Keys and App ID
options
.
appId
=
process
.
env
.
PARSE_SERVER_APPLICATION_ID
;
options
.
clientKey
=
process
.
env
.
PARSE_SERVER_CLIENT_KEY
;
options
.
restAPIKey
=
process
.
env
.
PARSE_SERVER_REST_API_KEY
;
options
.
dotNetKey
=
process
.
env
.
PARSE_SERVER_DOTNET_KEY
;
options
.
javascriptKey
=
process
.
env
.
PARSE_SERVER_JAVASCRIPT_KEY
;
options
.
masterKey
=
process
.
env
.
PARSE_SERVER_MASTER_KEY
;
options
.
fileKey
=
process
.
env
.
PARSE_SERVER_FILE_KEY
;
// Comma separated list of facebook app ids
var
facebookAppIds
=
process
.
env
.
PARSE_SERVER_FACEBOOK_APP_IDS
;
if
(
facebookAppIds
)
{
facebookAppIds
=
facebookAppIds
.
split
(
","
)
;
options
.
facebookAppIds
=
facebookAppIds
;
}
}
var
mountPath
=
process
.
env
.
PARSE_SERVER_MOUNT_PATH
||
"/"
;
var
api
=
new
ParseServer
(
options
)
;
app
.
use
(
mountPath
,
api
)
;
var
port
=
process
.
env
.
PORT
||
1337
;
app
.
listen
(
port
,
function
(
)
{
console
.
log
(
'parse-server-example running on http://localhost:'
+
port
+
mountPath
)
;
}
)
;
Back
|
FazBrowse Home
|
New Git URL