1. Clone Repository

git clone https://github.com/htl-leonding-project/leo-iot

2. Getting Started Development

2.1. Start Timescale DB

The production databse and the development database are the same. There is a extra docker-compose file for starting only the database. This container can be executed by running the following commands.

cd database
docker-compose up -d
-d option is for daemon. If you don’t want to start it in the background, remove this option.

2.2. Start Quarkus in development Mode

For starting quarkus simply start quarkus in the development. This works with the following command

cd backend
./mvnw clean compile quarkus:dev

2.3. Start Angular in development Mode

The frontend can be started in development mode with the start npm script.

cd frontend
npm start

3. Getting Started Production

3.1. Build

This command is for building the whole project. It will produce a docker image for every component.

docker-compose build

3.2. Start

This will start the whole application with frontend, backend etc.

docker-compose up -d
-d option is for daemon. If you don’t want to start it in the background, remove this option.