MCPcopy
hub / github.com/godaddy/terminus / startServer

Function startServer

example/mongo/index.js:25–40  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

23}
24
25async function startServer () {
26 client = await MongoClient.connect('mongodb://localhost:27017')
27 db = client.db('terminus')
28
29 console.log('db connected')
30
31 terminus(http.createServer(app), {
32 logger: console.log,
33 signal: 'SIGINT',
34 healthChecks: {
35 '/healthcheck': onHealthCheck
36 },
37
38 onSignal
39 }).listen(3000)
40}
41
42startServer()
43 .catch(err => console.error('connection error', err.stack))

Callers 1

index.jsFile · 0.70

Calls 1

terminusFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…