2020-06-04 08:15:48 +02:00
2020-05-20 16:52:06 +02:00
2020-05-14 15:51:35 +02:00
2020-05-31 16:19:56 +02:00
2020-05-18 16:05:42 +02:00

Library

written in Hexagonal (Ports & Adapters) Architecture

Master Branch Quality Gate Status Coverage License: MIT

This is a small application that provides basic REST endpoints for managing library (add new book, reserve, borrow it, etc.).

The technology behind it:

  • Java 11
  • Postgres
  • Spring Boot

Installing / Getting started

Using docker-compose

In the terminal run the following command:

$ docker-compose up

Using Maven

First make sure that you adjust the configuration file - src/main/resources/application.yml with connection details to your database.

Then, in the terminal run the following command:

$ mvn clean package
$ mvn spring-boot:run

Inside IntelliJ (with H2 or Postgres database)

First configure how you run the LibraryHexagonalApplication.java by adding --spring.profiles.active=h2 (for H2 database) or --spring.profiles.active=postgres (for Postgres database) as a Program argument.

Then just run the LibraryHexagonalApplication.java class so it will use H2 database (you don't need to have postgres database up and running).

Description
An example application written in Hexagonal (Ports and Adapter) architecture
Readme 10 MiB
Languages
Java 99.1%
Groovy 0.7%
Dockerfile 0.2%