Skip to content

About

A patient management backend built with Spring Boot microservices, featuring patient records, billing, authentication, and analytics, with Kafka for events, gRPC for billing, and local AWS deployment via Docker and LocalStack.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Microservices with Java

Re-engineering microservices with VSCode setup (cos it was build on IntelijIDEA at first)

Architecture

VSCode Setup

Requirement (Extensions):

  • Spring Boot Extension Pack.
  • Java Extension Pack.

Start Comamnd

Command :

Spring initialzr : Create a (maven/gradle/etc) project

Then setup :

  • springboot version
  • group
  • artifact
  • package name
  • depedencies

How to Run :

Requirements :

  • Localstack

  • Docker Desktop

  • AWS cli

  • LocalStack Create localstack account and get personal auth token

Configure localstack with auth token, leave other settings to default

  • Install AWS CLI

Configure aws with :

aws configure
  • Create Docker Image With docker compose and Makefile command

  • Run Localstack :

./infrastructure/localstack-deploy.sh

Domain should be shown in command:

aws --endpoint-url=http://localhost:4566 elbv2 describe-load-balancers \
    --query "LoadBalancers[0].DNSName" --output text

Run Command

Makefile in each services, Some options :

  • make clean
  • make build
  • make up
  • make down

Error Handling

If encounter any error in running script, maybe because depedencies issue :

aws --endpoint-url=http://localhost:4566 cloudformation describe-stack-events --stack-name patient-management --output table

Check error on log table

To Do (?)

Currently hard_coded properties, so there will be .env.example  

About

A patient management backend built with Spring Boot microservices, featuring patient records, billing, authentication, and analytics, with Kafka for events, gRPC for billing, and local AWS deployment via Docker and LocalStack.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages