Skip to content

bressani/clean-arch

Repository files navigation

Clean Arch

Simple API to create and find users. Just to put in practice clean architecture.

Technologies

  • Kotlin
  • Spring
  • Docker
  • Mongo

Request Example

Create User

curl --location --request POST 'http://localhost:8080/users/' \
--header 'Content-Type: application/json' \
--data-raw '{
    "name": "Some Name"
}'

Response

{
    "uuid": "1626ccf7-c280-4094-9798-861f82422dc8",
    "name": "Some Name"
}

Find User

curl --location --request GET 'http://localhost:8080/users/1626ccf7-c280-4094-9798-861f82422dc8'

Response

{
    "uuid": "1626ccf7-c280-4094-9798-861f82422dc8",
    "name": "Some Name"
}

How to run

Requirements:

Running with Docker Compose

Runs both the application and Mongo

docker-compose up --build

TODO

  • Error handling
  • More test scenarios
  • Controller tests
  • Integration tests
  • CI
  • Cache
  • Implement all CRUD operations

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published