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

Function boot

code/ch8/rest-express/index.js:68–72  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

66
67const server = http.createServer(app)
68const boot = () => {
69 server.listen(app.get('port'), () => {
70 console.info(`Express server listening on port ${app.get('port')}`)
71 })
72}
73
74const shutdown = () => {
75 server.close(process.exit)

Callers 2

index.jsFile · 0.70
index.jsFile · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected