> For the complete documentation index, see [llms.txt](https://docs.zenith-it.co.uk/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.zenith-it.co.uk/readme.md). Agents can also search and read this documentation through its [MCP server](https://docs.zenith-it.co.uk/~gitbook/mcp).

# Zenith IT Technical Handbook

For the API contract, Postman environments, safe test collections and deployment regression checks, see [API testing and Postman](https://docs.zenith-it.co.uk/api-testing-and-postman.md).

The authoritative engineering, API and operations guide for the Zenith IT website and customer-management platform.

This handbook is organised around the system's lifecycle: understand the project, understand its architecture, protect its data, then operate it safely.

## Handbook

1. [Getting started](https://docs.zenith-it.co.uk/1.-getting-started.md) — project overview, technology stack, repository map and local development.
2. [Application architecture](https://docs.zenith-it.co.uk/2.-application-architecture.md) — public website, customer portal, admin console, PHP backend and API reference.
3. [Data and security](https://docs.zenith-it.co.uk/3.-data-and-security.md) — database, migrations, authentication, access control, billing and private storage.
4. [Deployment and operations](https://docs.zenith-it.co.uk/4.-deployment-and-operations.md) — configuration, CI, Fasthosts deployment, backups, monitoring and runbooks.

## System at a glance

| Area                    | Implementation                                                                      |
| ----------------------- | ----------------------------------------------------------------------------------- |
| Public website          | Static HTML, CSS and vanilla JavaScript                                             |
| Server-side application | PHP 8+                                                                              |
| Database                | MySQL                                                                               |
| Frontend build          | Tailwind CSS v3 and pinned npm dependencies                                         |
| Hosting                 | Fasthosts shared hosting; provider-managed nginx proxy to Apache                    |
| Deployment              | GitHub Actions, self-hosted Linux runner, SSH and rsync                             |
| Source repository       | [Jake-Gibbons/Zenith-IT-Website](https://github.com/Jake-Gibbons/Zenith-IT-Website) |
| Production domain       | [zenith-it.co.uk](https://zenith-it.co.uk)                                          |

## API reference

The API reference is generated from the checked-in OpenAPI 3.1 document at `docs/openapi.yaml`. GitBook renders its operations by tag and includes reusable schema models and a download link. The OpenAPI file is the source for the documented HTTP contract; endpoint implementation remains authoritative where the specification is incomplete.

## Source-of-truth policy

The application repository is authoritative for implementation. Database schema and migration files are authoritative for data structure. Hosting-only values must be verified in the hosting account rather than guessed.

Never publish credentials, tokens, private keys, customer data, password hashes or internal storage paths. A successful file deployment does not mean database migrations have been applied.

## Maintaining the handbook

Update the relevant chapter and `docs/openapi.yaml` in the same pull request whenever a change affects routes, request or response contracts, schema, security, environment configuration, deployment or operational behaviour. Review the rendered API reference after changing the OpenAPI file.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.zenith-it.co.uk/readme.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
