Skip to content

This repo is for and exercise of API Contract First and code clean architecture.

Notifications You must be signed in to change notification settings

FelipeSolanaAdidas/api-contract-first-inventory

Repository files navigation

Inventory

This application does nothing more that an exercises to apply two concepts: Code Clean architecture and API Contract First

I took the Code Clean architecture idea from this repo . It's a good example and have a lot of resources to check

Application

It's a maven monorepo with the application split in several layers.

  • Core: keep all the business layer
  • Dataproviders: keep the layer in charge of data persistence
  • Api: the different delivery layers implemented. The idea is to have different layers with different technologies like exercise: REST API, gRPC, GraphQL and different frameworks.

dir-structure.png

API Contract First

For the exercise of autoimmunization of from API contract go here

Compile and run

The tools that I have used and the specific versions:

Compile with next command:

mvn clean install

You can run the application with different API technologies.

Run with Spring Boot

 mvn -f ./application/api/springboot/pom.xml spring-boot:run

Run with micronaut

 mvn -f ./application/api/micronaut/pom.xml mn:run

About

This repo is for and exercise of API Contract First and code clean architecture.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages