Skip to content

Latest commit

 

History

History
24 lines (20 loc) · 611 Bytes

README.md

File metadata and controls

24 lines (20 loc) · 611 Bytes

Library

Library is example service in microservices architecture

Features

  • transcoding api with grpc
  • swagger api + swagger ui
  • healthy grpc service http://localhost/health
  • mongodb generic crud with transaction

How to build and run Server?

  • run make make build
  • run mongodb instance
  • rename .env.example to .env and set your environments
  • run ./library

Environment variables

MONGO_LIBRARY_URI="mongodb://user:12345@localhost:27017/?directConnection=true"
SERVER_GRPC_ADDRESS="localhost"
SERVER_GRPC_PORT="9010"
SERVER_HTTP_ADDRESS="localhost"
SERVER_HTTP_PORT="8010"