Skip to content

Glossary: Building APIs with Node.js

app.listen()

Also written: listen

Starts a Fastify server on a port and host. `port: 0` asks the system for any free port.

Where the book teaches it

Related terms

PortNetwork interface