# Development, Deployment & Environments

### Environments

We use three main environments:

* **Development** – for local work and early testing.
* **Staging** – close to production; used for QA and UAT.
* **Production** – live environment for real users.

### Local setup

1. Clone the repository.
2. Install dependencies.
3. Configure environment variables (`.env` file or secrets manager).
4. Run database migrations (if applicable).
5. Start backend and frontend services.

Detailed steps are described in `/docs/dev/local-setup.md`.

### Branching and workflow

* Main branches: `main` (production) and `develop` (staging).
* Feature branches: `feature/<short-name>`.
* Bugfix branches: `fix/<short-name>`.
* Pull requests are required for merging to `develop` and `main`.

### CI/CD pipeline

* On pull request: run tests and linters.
* On merge to `develop`: deploy automatically to staging.
* On tagged release: deploy to production (manual approval may be required).


---

# Agent Instructions: Querying This Documentation

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

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://beeplus.gitbook.io/beeplus-docs/development-deployment-and-environments.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
