• Stars
    star
    235
  • Rank 171,079 (Top 4 %)
  • Language
    Java
  • Created over 4 years ago
  • Updated about 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

An example application written in Hexagonal (Ports and Adapter) architecture

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 (with H2 or local Postgres database)

First compile an application:

$ mvn clean package

Then, you have two options either run it with H2 database or with local Postgres database. For first approach just run:

$ mvn spring-boot:run 

For a second option, check in the configuration file - src/main/resources/application.yml for profile local-postgres if connection details are correct and if so, run the command:

$ mvn spring-boot:run -P local-postgres

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).

More Repositories

1

kanban-board

Single-click full-stack application (Postgres, Spring Boot & Angular) using Docker Compose
Java
171
star
2

Library-Spring

The library web application where you can borrow books. It's Spring MVC and Hibernate project.
Java
79
star
3

keycloak-security-example

Sandbox project to play around with keyclaok and integrating it with Spring Boot and Angular apps (using OAuth 2.0 protocol)
Java
74
star
4

k8s-helm-helmfile

Project which compares 3 approaches to deploy apps on Kubernetes cluster (using kubectl, helm & helmfile)
70
star
5

aston-villa-app

Aston Villa Dashboard made in Angular 7
TypeScript
33
star
6

WaWa-Tabor

Android app that presents location of Warsaw buses and trams.
Java
23
star
7

cypress-simple-ci-report

Simple Cypress project with GitHub Actions workflow for generating and publishing test execution result page.
JavaScript
19
star
8

NoticeBoard

Simple RESTful CRUD application (based on Spring Boot)
Java
12
star
9

docker-postgres

Postgres Dockerfile with simple SQL script
Dockerfile
8
star
10

Nasa-Picture

Single-page application which display NASA's Astronomy Picture of the Day
Java
7
star
11

algorithms-python

Set of solutions of classic algorithmic problems written in Python
Python
6
star
12

MyGitHubActions

My GitHub Actions Workflows repository
5
star
13

monitoring-sandbox

Java
3
star
14

Library-API

A REST API for my other project - Library Spring
Java
3
star
15

food-delivery-redis

Java
3
star
16

Random-Jokes

Testing RxJava 2 periodic capabilities
Java
3
star
17

develop-env

Development tools in Docker container
Dockerfile
2
star
18

eurovision-2021

Web scrapper for getting number of views of YouTube videos of Eurovision contestants
Jupyter Notebook
2
star
19

java-series

Repo with various Java examples
Java
2
star
20

farm-to-table

Java
2
star
21

ParkingManager

Simple web application using JSP, Servlets, JDBC, MySQL and Gradle
Java
1
star
22

wkrzywiec.github.io

HTML
1
star
23

test-git

Smarty
1
star
24

build-local-env

Scripts for installing all necessary (for me) tools on OS
1
star
25

tasty-python

Command Line Tool for finding recipes on Tasty.co (written in Python)
Python
1
star
26

pet-clinic

Smarty
1
star
27

gh-workflows

1
star
28

testcontainers-sandbox

Small project for testing testcontainers features
Java
1
star
29

helm-course

1
star
30

classic-den

Simple client and server app for publishing posts
JavaScript
1
star
31

devil-deals-network

Blockchain, based on Hyperledger Composer project
JavaScript
1
star
32

mankkoo

Python
1
star
33

helm-app

Helm Repository for "app" Chart
Smarty
1
star
34

helm-emp

Smarty
1
star
35

polish-crops

Machine learning project to find out if price of a wheat in Poland depends on a weather.
Jupyter Notebook
1
star