README.md 1.83 KB
Newer Older
Jyrgen Hannus's avatar
Jyrgen Hannus committed
1
# Representatives service
Enriko Käsper's avatar
Enriko Käsper committed
2

Jyrgen Hannus's avatar
Jyrgen Hannus committed
3 4 5 6 7 8
Representatives service is a microservice which provides self-service user representatives management for TeIS application users.

## Features

Representatives service is a Spring Boot application providing the following functionality:

9 10
* representatives management - individual persons representing legal persons in different roles.
* authority management - legal persons authorizes another legal person and assigns certain permissions.
Jyrgen Hannus's avatar
Jyrgen Hannus committed
11 12 13 14 15 16 17

## Requirements

* [OpenJDK 11](https://openjdk.java.net/projects/jdk/11/)
* [Rabbit MQ](https://www.rabbitmq.com/)
* [PostgreSQL](https://www.postgresql.org/)

18
See [how to run required dependencies](../../docs/blob/master/run-requirements.md).
Jyrgen Hannus's avatar
Jyrgen Hannus committed
19 20 21

Representatives service depends on other TeIS libraries:

22 23 24 25 26
* [TeIS Gradle plugin](../../teis-gradle-plugin)
* [TeIS public commons libraries](../../commons-public)
* [TeIS commons libraries](../../commons)
* [TeIS common API gateway library](../../common-api-gateway)
* [TeIS office API gateway library](../../office-api-gateway)
Jyrgen Hannus's avatar
Jyrgen Hannus committed
27 28 29 30 31 32 33

## Run application

Spring Boot project can be run directly from [RepresentativesServiceApp.main()](service/src/main/java/ee/sm/ti/teis/RepresentativesServiceApp.java) 
method or via executable jar file. More info on running Spring applications: 
[running your application.](https://docs.spring.io/spring-boot/docs/current/reference/html/using-boot-running-your-application.html)

34
Visit [how to run application](../../docs/blob/master/run-application.md).
Jyrgen Hannus's avatar
Jyrgen Hannus committed
35 36

## Build and configure
37
Visit [how to build](../../docs/blob/master/build-configure.md) for more info.
Jyrgen Hannus's avatar
Jyrgen Hannus committed
38 39

## Default profiles
40
Visit [environment profiles](../../docs/blob/master/default-profiles.md) for more info.
Jyrgen Hannus's avatar
Jyrgen Hannus committed
41 42 43 44 45 46 47

## Tests

Run [integration](service/src/integTest) and [unit tests](service/src/test) via IDE or with Gradle in command line:

```jshelllanguage
./gradlew test
48
```