https://github.com/fgituser/management-client-psychologist.services
Go mono repository with management of client’s activities with a psychologist.
https://github.com/fgituser/management-client-psychologist.services
docker-compose golang monorepo postresql prometheus rest-api services
Last synced: 4 months ago
JSON representation
Go mono repository with management of client’s activities with a psychologist.
- Host: GitHub
- URL: https://github.com/fgituser/management-client-psychologist.services
- Owner: fgituser
- License: mit
- Created: 2020-03-29T03:51:24.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-04-15T08:24:34.000Z (about 6 years ago)
- Last Synced: 2025-10-20T01:59:26.333Z (8 months ago)
- Topics: docker-compose, golang, monorepo, postresql, prometheus, rest-api, services
- Language: Go
- Homepage:
- Size: 26.6 MB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# psychologist client services
Represents a mono repository with services:
* [Client](https://github.com/fgituser/management-client-psychologist.services/tree/master/client) - client.service
* [Psychologist](https://github.com/fgituser/management-client-psychologist.services/tree/master/client) - psychologist.service
* [Operator](https://github.com/fgituser/management-client-psychologist.services/tree/master/client) - operator.service
Service monitoring is carried out by prometheus
### Installation
#### Docker
Install docker in containers
```sh
docker-compose up
```
#### Building for source
To build each service separately, you need to go into the directory with the necessary service and perform:
```sh
make build
```
### URL services (default)
After the deployment of services, they will be available at the following addresses:
psychologist-service - http://localhost:9998
client-service - http://localhost:9999
operator-service - http://localhost:9997
> services interact with each other on the internal network, you can change the ports for each of them, which will not affect the communication between services
### Database services (default)
By default, two databases postgresql are created for the service psychologist and client
psycholog - postgres://127.0.0.1:5434/psychologist?sslmode=disable&user=postgres&password=postgres
clients - postgres://127.0.0.1:5436/clients?sslmode=disable&user=postgres&password=postgres
> services interact with each other on the internal network, you can change the ports for each of them, which will not affect the communication between services
### Monitoring services
Monitoring is carried out by means of prometheus which is available at:
prometheus - http://localhost:9090
> Services are pre-registered in prometheus.
The configuration file is located in the ./configs/prometheus.yml directory
### Open API Specification
* [Client specification](https://github.com/fgituser/management-client-psychologist.services/blob/master/client/api/openapi-spec/swagger.yaml)
* [Psychologist specification](https://github.com/fgituser/management-client-psychologist.services/blob/develop/psychologist/api/openapi-spec/swagger.yaml)
* [Operator specification](https://github.com/fgituser/management-client-psychologist.services/blob/develop/operator/api/openapi-spec/swagger.yaml)