This documentation describes how to setup prerequisites and how to run the the pictures application.
The application was developed on a linux host with the IntelliJ IDEA Community Edition and therefore run configuration for this version are available in the git repository.
IntelliJ isn't a prerequisite, any other IDE can be used to develop the app. Preconfigured run configurations are available for this version. It can be downloaded here
Confluent platform contains a CLI for kafka and is used in scripts to manage topics, etc. It can be downloaded here
The app was developed using java 9 but should be compatible with java 8 as well.
The libraries of the message api depend on each other and are referenced in the apps. Therefore the order in which they have to be build (and published to local maven repository) is crucial.
Run the following scripts in the root directory of the git repository:
- build-message-api.sh
- build-services.sh
Navigate to the directory "scripts/dev".
To start / stop the identity server run: ./is-up.sh
or ./is-down.sh
.
To start / stop the other services run ./services-up.sh
or ./services-down.sh
.
Some docker volume remains after stopping the containers (few hundred megabytes per run).
To clean up run ./docker-cleanup.sh
.
Navigate to the directory "scripts/dev".
Run the ./init.sh
script.
Add some background pictures to the directory webapp/src/assets/images/
Expected are pictures with the name background1.jpg
.. background5.jpg
.
This can be adjusted in the file src/app/components/dashboard/dashboard.component.ts
Navigate to the webapp directory and run:
npm install
and ng serve
There are preconfigured run configurations to use.
Start the services as described below.
To start with a filesystem backend run with the parameters -Dspring.profiles.active=native,file-local
To start with a local git backend run with the parameters -Dspring.profiles.active=git-local
Start with the parameters -Dspring.profiles.active=local
Start with the parameters -Dspring.profiles.active=local
Start with the parameters -Dspring.profiles.active=local
Start with the parameters -Dspring.profiles.active=local
Start with the parameters -Dspring.profiles.active=local
Start with the parameters -Dspring.profiles.active=local
Start with the parameters -Dspring.profiles.active=local
A few tools are added to get some insights, what's happening in the application.
Zipkin is started as docker container and can be accessed at http://localhost:9412/.
The eureka dashboard can be access at http://localhost:10010/.
Login with eureka:secret
The topics UI can be accessed at http://localhost:8000/.
A management UI to look into the elasticsearch database can be accessed at http://localhost:5010/.
The config server can be accessed at http://localhost:10000/<service-name>/<profile>
for example http://localhost:10000/resize-service/kafka-local.
Login with config:secret