- Java
- Spring Boot
- CockroachDB
The main feature of “Hexagonal Architecture”, as opposed to the common layered architecture style, is that the dependencies between our components point “inward”, towards our domain objects:
The hexagon is just a fancy way to describe the core of the application that is made up of domain objects, use cases that operate on them, and input and output ports that provide an interface to the outside world.
Follow this steps before launch application
This will 🚀 start the microservice
$ ./mvnw spring-boot:run
Build image 🔨
docker build . -t comedy-club-api:latest
It will start 🚀 the database
docker run -d \
--name=comedy-club \
-p 26257:26257 -p 8083:8080 \
cockroachdb/cockroach:latest start-single-node \
--insecure
It will start 🚀 the container
docker run -d -p 8080:8080 -it --name comedy-club-api \
comedy-club-api:latest