Skip to content

Showcase microservices using Spring Boot, Kotlin, Netflix Zuul, Docker and MongoDB

Notifications You must be signed in to change notification settings

dodalovic/kotlin-microservices

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Kotlin microservices

Important

Tested with:

  • Maven 3.5.0

  • Docker version 17.03.1-ce

  • docker-compose version 1.11.2

Running services

  • Package apps:

    execute in kotlin-user-service
    $ mvn clean package
    execute in kotlin-api-gateway
    $ mvn clean package
  • Start services

    execute in project root
    $ docker-compose up --build -d
  • Sample user create request

    execute in shell
    http -h POST http://localhost:8080/users/ \#(1)
        'Content-Type: application/json' \
        [email protected] name=John lastname=Doe
    1. http is httpie command line client

      response
      HTTP/1.1 201
      Date: Thu, 25 May 2017 10:12:17 GMT
      Location: http://localhost:8080/users/5926ae01410df8000740da9a
      Transfer-Encoding: chunked
      X-Application-Context: application
  • Sample get user request

    execute in shell
    http :8080/users/5926ae01410df8000740da9a
    response
    HTTP/1.1 200
    Content-Type: application/json;charset=UTF-8
    Date: Thu, 25 May 2017 10:12:43 GMT
    Transfer-Encoding: chunked
    X-Application-Context: application
    {
        "email": "[email protected]",
        "lastname": "Doe",
        "name": "John"
    }

About

Showcase microservices using Spring Boot, Kotlin, Netflix Zuul, Docker and MongoDB

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages