Skip to content

Hexagonal Application Backend repo for the "EY Hexagonal Architecture" workshop in the Codemotion Meet Madrid on 01/16/2025

Notifications You must be signed in to change notification settings

macagua/codemotion-hexagonal-backend

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

codemotion-hexagonal-backend

The Hexagonal Application Backend repo for the "EY Hexagonal Architecture" workshop in the Codemotion Meet Madrid on 01/16/2025.

The Hexagonal Architecture

Workshop Purpose

The workshop product was to add support to the Pokemon API in this repository, as shown in the following screenshot:

The Product Result of the Workshop

Pre requirements

Download

git clone github.com:macagua/codemotion-hexagonal-backend.git
cd codemotion-hexagonal-backend

Build

Use Apache Maven for to build the jar package, with the following commands:

mvn package

Deploy

Use Docker to deploy the backend application container, with the following commands:

docker-compose up -d

APIs

This repository contains at least two APIs, which I describe below:

Rick And Morty Character API

/character

  • Obtains all Rick and Morty characters.

/character/{id}

  • Gets the information of a Rick and Morty character.

Pokemon API

/api/pokemons

  • Obtains all Pokemon records

/api/pokemon/{id}

  • Obtains the information of a Pokemon

Testing

To testing the Pokemon API, with the following commands:

All Pokemon records

curl -X GET http://localhost:8081/api/pokemons

Information about a Pokemon

curl -X GET http://localhost:8081/api/pokemon/cel25-7

About

Hexagonal Application Backend repo for the "EY Hexagonal Architecture" workshop in the Codemotion Meet Madrid on 01/16/2025

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 98.1%
  • Dockerfile 1.9%