This microservice is responsible for managing the different types of users in the system. It has the basic CRUD of the users, along with the functionality to follow users, block users as well as approve requests from known trainers. It also has the functionality to login/singup a user with email and password, or with Google. It also implements the notification system through Firebase connection.
The link to the API documentation of this microservice can be found in the corresponding Swagger: API Documentation - User Microservice
$ docker-compose build
$ docker-compose up
When you run a docker-compose build
, it creates a new image, but it doesn't remove the old one, so you can have a lot of images with the same name but different id. Then, you can remove all of them with the following command:
$ docker rmi $(docker images -f dangling=true -q) -f
Warning: This will remove all containers, images, volumes and networks not used by at least one container.
Its recommended to run this command before docker-compose up
to avoid problems.
$ docker system prune -a --volumes
After any change in pyproject.toml file (always execute this before installing):
$ poetry lock
$ poetry install -E dev
$ poetry install
$ poetry run pytest tests
$ poetry run flake8 --max-line-length=88 app
$ poetry run black --skip-string-normalization app