wadiim / igaku

Repository from Github https://github.comwadiim/igakuRepository from Github https://github.comwadiim/igaku

Igaku

Quick Start

$ ln -s .env.example .env
$ docker compose up

Visit:

Service Replication

$ docker compose up --scale auth=2 --scale user=2

Enabling the mail service

By default, the mail service is disabled in order to minimize the number of steps needed to run the project for the first time. Enabling the mail service requires setting the MAIL_ENABLED variable in the .env file to a non-empty value. Additionally, the SMTP_* variables must be set to values appropriate to the SMTP (Simple Mail Transfer Protocol) server being used.

Starting the ELK stack

$ docker compose --profile elk up

Visit:

Testing

Unit Testing

$ go -C user-service test ./tests/
$ go -C auth-service test ./tests/
$ go -C encounter-service test ./tests/

Integration Testing

$ go -C user-service test -tags=integration ./tests/ -v
$ go -C auth-service test -tags=integration ./tests/ -v

Load Testing

$ ./tools/run-load-tests.sh

Swagger documentation generation

$ ./tools/gen-docs.sh

License

MIT

About

License:MIT License


Languages

Language:Go 98.8%Language:Shell 1.2%