paulwoods / woods

leaning spring cloud microservices

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

README.md

Source Code

https://github.com/paulwoods/woods

Prerequisites

edit your host file, and add the following lines:

  • 127.0.0.1 gateway
  • 127.0.0.1 auth
  • 127.0.0.1 server
  • 127.0.0.1 web
  • 127.0.0.1 client

Gateway

Prerequisites

  1. install java21

Run the project

  1. cd gateway 2./gradlew bootRun

Verify that the gateway is running

In another terminal, enter:

  1. curl gateway:8080/actuator/health

Server

Prerequisites

  1. install java21

Run the Project

  1. cd server
  2. /gradlew/bootRun

Verify that the server is running

In another terminal, enter:

  1. curl server:8081/actuator/health

Client

Prerequisites

  1. install the latest node lts release

Run the Project

  1. cd client
  2. npm install
  3. npm run dev

Verify that the client is running

browse to http://client:5173

Once all 3 components are running you can browse to http://gateway:8080/. You should see the home page of the application. Click the greeting button and you should see the message returned by the server displayed underneath the greeting button.

insomnia

oisdc

use for testing:

http://auth:9000/.well-known/oauth-authorization-server

About

leaning spring cloud microservices


Languages

Language:Java 73.1%Language:CSS 11.4%Language:TypeScript 10.4%Language:JavaScript 2.8%Language:HTML 2.4%