# 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>.
