Skip to content

mlukasik-dev/usersvc

Repository files navigation

User Microservice

Running on localhost With docker-compose

Prerequisites:

  1. docker-compose installed.
  2. Open 8080 and 8081 ports.

Steps:

  1. Run docker-compose up, grpc-server is accessible at localhost:8080 and mongoDB dashboard at localhost:8081.
    Wait for Listening at [::]:8080 log from server container
    Replica can try to setup even a few minutes, alternatively consider using, MongoDB Altas free tier cluster.
    In order to run with remote cluster provide connection URI as MONGODB_URI env. variable.

Testing

Endpoints can be tested with evans-cli or bloomrpc.
For endpoints documentation see protobuf definition file.

About

Example microservice with gRPC and MongoDB

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages