{"repo":"wkrzywiec/library-hexagonal","free":true,"listed":false,"github":"https://github.com/wkrzywiec/library-hexagonal","clone":"git clone https://github.com/wkrzywiec/library-hexagonal.git","description":"An example application written in Hexagonal (Ports and Adapter) architecture","language":"Java","stars":279,"topics":["hexagonal-architecture","ports-and-adapters","ddd","domain-driven-design","docker","docker-compose","postgres","spring-boot","java-11","cqrs"],"license":null,"category":"deployment-docker-iac","readme_excerpt":"Library written in Hexagonal (Ports & Adapters) Architecture 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: Using Maven (with H2 or local Postgres database) First compile an application: Then, you have two options either run it with H2 database or with local Postgres database. For first approach just 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: 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).","default_branch":null,"files":null,"tree":[],"storefront":"/r/wkrzywiec","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/wkrzywiec/library-hexagonal/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}