FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
MimosaTypeScript/server.js at master · mpielikis/MimosaTypeScript · GitHub
mpielikis
MimosaTypeScript
Repository navigation
Code
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
MimosaTypeScript
/
server.js
Copy path
More file actions
More file actions
Latest commit
History
History
History
32 lines (26 loc) · 1005 Bytes
Breadcrumbs
MimosaTypeScript
/
server.js
Copy path
File metadata and controls
32 lines (26 loc) · 1005 Bytes
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
var
express
=
require
(
'express'
)
,
routes
=
require
(
'./routes'
)
,
engines
=
require
(
'consolidate'
)
;
exports
.
startServer
=
function
(
config
)
{
var
app
=
express
(
)
;
var
server
=
app
.
listen
(
config
.
server
.
port
,
function
(
)
{
console
.
log
(
"Express server listening on port %d in %s mode"
,
server
.
address
(
)
.
port
,
app
.
settings
.
env
)
;
}
)
;
app
.
configure
(
function
(
)
{
app
.
set
(
'port'
,
config
.
server
.
port
)
;
app
.
set
(
'views'
,
config
.
server
.
views
.
path
)
;
app
.
engine
(
config
.
server
.
views
.
extension
,
engines
[
config
.
server
.
views
.
compileWith
]
)
;
app
.
set
(
'view engine'
,
config
.
server
.
views
.
extension
)
;
app
.
use
(
express
.
favicon
(
)
)
;
app
.
use
(
express
.
bodyParser
(
)
)
;
app
.
use
(
express
.
methodOverride
(
)
)
;
app
.
use
(
express
.
compress
(
)
)
;
app
.
use
(
config
.
server
.
base
,
app
.
router
)
;
app
.
use
(
express
.
static
(
config
.
watch
.
compiledDir
)
)
;
}
)
;
app
.
configure
(
'development'
,
function
(
)
{
app
.
use
(
express
.
errorHandler
(
)
)
;
}
)
;
app
.
get
(
'/'
,
routes
.
index
(
config
)
)
;
return
server
;
}
;
Back
|
FazBrowse Home
|
New Git URL