https://github.com/sergiocostan26/price-retriever-hexagonal
Demo service applying the Hexagonal architecture.
https://github.com/sergiocostan26/price-retriever-hexagonal
hexagonal hexagonal-architecture kotlin ports-and-adapters spring-boot
Last synced: 8 months ago
JSON representation
Demo service applying the Hexagonal architecture.
- Host: GitHub
- URL: https://github.com/sergiocostan26/price-retriever-hexagonal
- Owner: sergiocostaN26
- Created: 2024-01-30T21:40:52.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-06-08T13:08:24.000Z (over 1 year ago)
- Last Synced: 2025-01-06T05:08:24.594Z (9 months ago)
- Topics: hexagonal, hexagonal-architecture, kotlin, ports-and-adapters, spring-boot
- Language: Kotlin
- Homepage:
- Size: 124 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# price-retriever-hexagonal
The purpose of this project is to build a demo service
using **domain-driven design** and **hexagonal architecture**.
The topic turns around prices linked to timeframes and the query of them.## Prerequisites
- Java 17
- Docker## Installation
1. Clone the repository
```sh
git clone git@github.com:sergiocmgit/price-retriever-hexagonal.git
```
2. Build the image
```sh
./gradlew build
```
3. Build the docker image
```sh
docker build -t price-retriever-hexagonal .
```
4. Run the application
```sh
docker run -p 8080:8080 price-retriever-hexagonal
```
5. Call the endpoint
```sh
curl -X GET "http://localhost:8080/api/prices?productId=35455&brandId=1&appliedAt=2020-06-14T10%3A00%3A00Z"
```## Documentation
Check the documentation when the application is running by accessing the following:
- Swagger documentation: [Swagger UI](http://localhost:8080/swagger-ui/index.html#/)
- OpenAPI documentation in json format: [OpenAPI in JSON](http://localhost:8080/v3/api-docs)
- OpenAPI documentation in yaml format: [OpenAPI in YAML](http://localhost:8080/v3/api-docs.yaml)