Skip to content

Latest commit

 

History

History
76 lines (47 loc) · 1.79 KB

README.md

File metadata and controls

76 lines (47 loc) · 1.79 KB

Microservices Java gRPC

Only the Go Version is deploy, due to EC2 bills :) You can run images locally.

This repo contains microservices written in Java with BFF pattern for performing CRUD operations.

Only the Go Version is deploy, due to EC2 bills :) You can run images locally.

See also

Installation

Clone the repository

git clone https://github.com/uid4oe/microservices-java-grpc.git

You should have Docker installed beforehand.

.env is included. You just need to create network & execute docker-compose command

docker network create uid4oe
docker-compose up -d

At this point everything should be up and running! You can access to UI at

http://localhost:3000/java

Additionally, you may take a look at Microservices gRPC UI for UI code.

Local Development

For running services in local environment you will need a MongoDB & PostgreSQL instance, you can use local.yml It will set up MongoDB, PostgreSQL and UI.

docker network create uid4oe
docker compose --file local.yml up -d

Do not forget to add below VM argument to every service.

-Dspring.profiles.active=develop

Also, for each service add grpc-java & java folders as Sources in File->Project Structure. This will allow IDE to see the generated gRPC classes.

You can start using the app through UI at

http://localhost:3000/java

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.