MCPcopy Create free account
hub / github.com/azat-co/practicalnode / boot

Function boot

code/ch3/blog-express/app.js:21–25  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

19
20const server = http.createServer(app)
21const boot = () => {
22 server.listen(app.get('port'), () => {
23 console.info(`Express server listening on port ${app.get('port')}`)
24 })
25}
26const shutdown = () => {
27 server.close()
28}

Callers 2

app.jsFile · 0.70
index.jsFile · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected