Coder Social home page Coder Social logo

hands-on-ms's Introduction

How to deploy these microservices in your local?

  1. Clone or Download this repository.
  2. Import all Projects in STS or Eclipse IDE.
  3. Update Maven dependencies.(Remove all workspace error)
  4. Build and Run the Projects in below sequence.
    1. 1st Deploy & Run eureka-server
    2. then Deploy & Run emp-service
    3. then Deploy & Run staff-api
    4. then Deploy & Run staff-web

How to run these microservices in browser?

These microservices having enabled springdoc-openapi or Swagger UI. You need to lunch staff-web project which runs in PORT:8090. Link : http://localhost:8090/

You can see all ms running intances in Eureka Server. Link : http://localhost:8761/

Other MicroServices Swagger links are given below :

emp-service link link : http://localhost:8000/swagger-ui/index.html

staff-api link Link : http://localhost:8010/swagger-ui/index.html

[If any of your server PORT (8000, 8010, 8090, 8761) is block then change the PORT number inside 'application.properties' (server.port=....) file with respective application.]


Project Design

[staff-web] ----> [staff-api] ----> [emp-service]

The application eureka-server is service registry.

The application emp-service is core employee service with Mock data saved in H2 database.

The application staff-api is middle layer Staff Location API, consume data from emp-service.

The application staff-web is front-end UI application, developed using thymeleaf. It consumes data from staff-api

All microservices are connected (call other ms) using OpenFeign.more details..

Here Spring Cloud Sleuth provides Spring Boot auto-configuration for distributed tracing more details...


hands-on-ms's People

Contributors

tamalnayek 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.