Skip to content

mainProgram/tp1_web_services

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Project Setup

Requirements

  • JDK 17
  • Maven 3.x
  • Postman

Microservice 1 (MS1)

  1. Open a console and run:
    docker compose -f ./src/main/docker/keycloak.yml up
  2. Open another console and run:
    docker compose -f ./src/main/docker/jhipster-registry.yml up
  3. Run the project:
    ./mvnw

Microservice 2 (MS2)

  1. Open a console and run:
    docker compose -f ./src/main/docker/keycloak.yml up
  2. Open another console and run:
    docker compose -f ./src/main/docker/jhipster-registry.yml up
  3. Run the project:
    ./mvnw

Gateway

  1. Open a console and run:
    docker compose -f ./src/main/docker/keycloak.yml up
  2. Open another console and run:
    docker compose -f ./src/main/docker/jhipster-registry.yml up
  3. Run the project:
    ./mvnw

URLs


Authentication with Keycloak Using Postman

Follow the tutorial here to authenticate with Keycloak using Postman.


Testing the Endpoints

After successful authentication:

  1. Visit: http://localhost:9090/services/ms1/api/v1/hello
    • You should see:
      Hello world from ms1!
      
  2. Visit: http://localhost:9090/services/ms2/api/v1/hello
    • You should see:
      Hello world from ms2!
      

About

Jhispster - microservices

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published