> For the complete documentation index, see [llms.txt](https://geolytix.gitbook.io/xyz-developer-guide/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://geolytix.gitbook.io/xyz-developer-guide/infrastructure/server.md).

# Server

Running [server.js](https://github.com/GEOLYTIX/xyz/blob/master/server.js) as a node will initialise a [Fastify](https://www.fastify.io/) web server.

The startup procedure is as follows.

1. Inspect the environment settings provided to the process.
2. Setup node-postgres connection pools.
3. Load workspace into memory.
4. Declare Fastify web server.
5. Register Fastify modules and routes.
6. Start listening for requests.
