GithubHelp home page GithubHelp logo

sendoamr / spring-boot-cloud Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 2.0 273 KB

Microservices API with netflix stack: Spring Boot 2, JUNIT 5, swagger 2, Spring webflux, Registry local, sonar. All in docker containers to easy deploy inn kubernetes

Dockerfile 4.49% Java 94.27% JavaScript 1.25%
spring-boot cloud spring-cloud reactive-programming sonarqube registry junit5 eureka-server eureka-client spring-boot-admin

spring-boot-cloud's Introduction

Modules

  • spring-boot-open: principal microservice to get packages data
  • spring-boot-admin: tool to managment the microservices
  • spring-boot-eureka: tool to managment the microservices
  • sonar-analytics: docker images to launch docker and send info of jacoco of microservices
  • registry to pull and push docker images
  • Postman: Collection for call to service

build microservice and admin

mvn clean install

Launch first spring boot admin running in http://localhost:9001 admin/admin and eureka running in http://localhost:9002

java -jar spring-boot-admin/target/spring-boot-admin-1.0.0.jar
java -jar spring-boot-admin/target/spring-boot-eureka-1.0.0.jar

Launch microservice and it should register data in admin at the moment

java -jar spring-boot-open/target/spring-boot-open-1.0.0.jar

At now, the service are available in http://localhost:9080

Register and build docker image of microservice

Read registry folder steps to launch a registry local.

mvn clean install docker:build
docker run localhost:5000/spring-boot-open

Run dynamic Junit5 tests

mvn test

Swagger documentation and tools

The service expose directly the swagger 2.0 in http://localhost:9080/v2/api-docs/ and you generate more option with swagger-tools

Next steps

  • Create profiling for diferent environments (local, local-cloud, ...)
  • Create a new experimental Reactive sandbox service with persistence
  • Integrate zuul and config server
  • Processing logs with elk
  • Create a demo webapp with reactive client

spring-boot-cloud's People

Contributors

sendoamoronta avatar sendoamr avatar snyk-bot avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.