Written in Hexagonal Architecture
This is a small API that provides basic REST endpoints to know if a DNA sequence belongs to a Simion and to gets statistics.
The technology behind it:
- Java 11
- Quarkus
- Postgres
In the terminal run the following command:
docker-compose up
First define the environment variables with values of your database:
Windows
set POSTGRES_SERVER=localhost
set POSTGRES_DB=matrix
set POSTGRES_USER=matrix
set POSTGRES_PASSWORD=123
Linux or MacOS
export POSTGRES_SERVER=localhost
export POSTGRES_DB=matrix
export POSTGRES_USER=matrix
export POSTGRES_PASSWORD=123
Then just run:
Windows
mvnw clean compile quarkus:dev
Linux or MacOS
./mvnw clean compile quarkus:dev
After starting the app using the docker-compose
or Maven
you can access the documentation and test using the Try it on
option.
http://localhost:8090/index.html
In the terminal run the following command:
Windows
mvnw clean verify
Linux or MacOS
./mvnw clean verify
Then access the coverage report in:
target/jacoco-report/index.html