# Set up and Run

### Client Setup

<details>

<summary>Step 1: Navigate to the <mark style="color:blue;">client</mark> directory:</summary>

```bash
cd client
```

</details>

<details>

<summary>Step 2: Install the dependencies:</summary>

```bash
npm install
```

</details>

<details>

<summary>Step 3: Starting the application:</summary>

```bash
npm start
```

</details>

The application should now be running on [http://localhost:5173](http://localhost:5173/).

### Server Setup

<details>

<summary>Step 1: Navigate to the <mark style="color:blue;">server</mark> directory:</summary>

```bash
cd server
```

</details>

<details>

<summary>Step 2: Create and activate a virtual environment:</summary>

```bash
python3 -m venv venv

source venv/bin/activate  # On Windows use `venv\Scripts\activate`
```

</details>

<details>

<summary>Step 3: Install the dependencies:</summary>

```bash
pip install -r requirements.txt
```

</details>

<details>

<summary>Step 4: Start the application:</summary>

```bash
flask run
```

</details>

The server should now be running on [http://localhost:5000](http://localhost:5000/).

### &#x20;Running using Docker.

Navigate to the root directory and run the following command to start the application:

```bash
docker-compose build
docker-compose up -d #running in detached mode
```

This should boot the applications and the UI can be accessed via  <http://localhost>.


---

# 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://annotate-docs.dwaste.live/fundamentals/set-up-and-run.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.
