To run the frontend, you have two options, each with its own set of requirements. The first method utilizes [yarn](#running-with-yarn), while the second employs [Docker](#docker-deployment).
To run the frontend, you have two options, each with its own set of requirements. The first method utilizes [yarn](#running-with-yarn), while the second employs [Docker](#docker-deployment).
...
@@ -39,13 +39,13 @@ yarn build
...
@@ -39,13 +39,13 @@ yarn build
## Docker deployment
## Docker deployment
Repository has a prepared Dockerfile so you can build the image:
The repository has a prepared Dockerfile so you can build the image:
```
```
docker build . -t inject-fe
docker build . -t inject-fe
```
```
To deploy the docker container:
Run the following command to deploy the docker container:
```
```
docker run -p 80:80 inject-fe
docker run -p 80:80 inject-fe
...
@@ -57,4 +57,4 @@ During runtime of the container it's required to bind the container to a given `
...
@@ -57,4 +57,4 @@ During runtime of the container it's required to bind the container to a given `
docker run -p 80:80 -e VITE_HTTP_HOST=secure-be.inject.muni.cz -e VITE_HTTP_WS=wss://secure-be.inject.muni.cz/ttxbackend/v1/graphql inject-fe
docker run -p 80:80 -e VITE_HTTP_HOST=secure-be.inject.muni.cz -e VITE_HTTP_WS=wss://secure-be.inject.muni.cz/ttxbackend/v1/graphql inject-fe
```
```
Please mind that changing environment variables requires restart of the container if done during the runtime.
Please keep in mind that changing environment variables requires restarting the container if done during runtime.
To ensure the frontend functions properly, it's crucial to have the backend up and running. Below are the steps to get backend operational:
To ensure the frontend application functions properly, it's necessary to have a backend instance up and running. Follow these steps to run the backend application: