![]() It is convenient to test the Rest API using go-hit. They are launched as a separate container, next to the application container. You don't need to correct anything by yourself. ![]() It is assumed that default values are in yaml, and security-sensitive variables are defined in ENV. Reading the config from yaml contradicts the ideology of 12 factors, but in practice, it is more convenient than It does not have many stars on GitHub, but is simple and meets all the requirements. The env-required: true tag obliges you to specify a value (either in yaml, or in environment variables).įor configuration, we chose the cleanenv library. The config structure is in the config.go. First, config.yml is read, then environment variables overwrite the yaml config if they match. Then the main function "continues" inĬonfiguration. $ make compose-up-integration-test Project structure cmd/app/main.goĬonfiguration and logger initialization. # DB, app + migrations, integration tests
0 Comments
Leave a Reply. |