Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/azat-co/practicalnode
/ index.js
File
index.js
code/ch8/rest-hapi/index.js:None–None ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1
const
port = process.env.PORT || 3000
2
const
Hapi = require(
'hapi'
)
3
const
server =
new
Hapi.Server()
4
server.connection({ port: port, host:
'localhost'
})
Callers
nothing calls this directly
Calls
2
loadCollection
Function · 0.85
boot
Function · 0.70
Tested by
no test coverage detected