This repo contains a go module that exposes a User Microservice using MongoDB as a datastore
https://app.swaggerhub.com/apis/jackmcguire1/User-Service/1.0.2
setup your mongo connection details in docker-compose.yaml
environment:
- MONGO_HOST=mongodb+srv://****
- MONGO_DATABASE=***
- MONGO_USERS_COLLECTION=users
docker-compose up -d && docker compose watch
- EVENTS_URL - external HTTP endpoint provided by interested services
- LOG_VERBOSITY - warn | error | info | debug
- MONGO_HOST - your mongo host url
- MONGO_DATABASE - your mongo database
- MONGO_USERS_COLLECTION - your mongo user's collection
The service must allow you to:
- add a new User
- modify an existing User
- remove a User
- return a list of the Users, allowing for filtering by certain criteria (e.g. all Users with the country "GB")
The service must include:
- A sensible storage mechanism for the Users
- The ability to send events to notify other interested services of changes to User entities
This project exists thanks to ME!.
All donations are appreciated!