# **Mobile application**

Mobile application developed using React Native and Expo, allowing users to monitor and control a heat pump remotely.

## **Getting Started**

### **Prerequisites**

Before starting the application, make sure to have installed the following tools:

- Node.js (v16.0.0 or later) ([download](https://nodejs.org/en))
- EXPO CLI (v6.0.0 or later) ([installation guide](https://docs.expo.dev/more/expo-cli/#installation))

### **Installation**

1. Clone this repository to a local machine.
2. Open the terminal and navigate to the repository.
3. Run the following command to install the dependencies:

   ```shell
    npm install
   ```

### **Configuration**

Create a `.env` file in the root directory of the project and configure the following environment variables:

```dotenv
  API_BASE=server_ip_address
  API_PORT=server_port
```

Replace `server_ip_address` with the IP address of API and `server_port` with the port number.

### **Running the application**

After proceeding with the installation and configuration steps, start the application using the following command:

```shell
  expo start
```

The command will start the Expo development server. The application can run on a physical device using Expo Go or an emulator/simulator.

### **Creating `.apk` installation file**

Configure environment variables in `eas.json` file and `app.json` in the root directory and run the following command:

```shell
  eas build -p android --profile apk
```
