Skip to content

Latest commit

 

History

History
52 lines (41 loc) · 3.18 KB

README.md

File metadata and controls

52 lines (41 loc) · 3.18 KB

Dega Server

Releasability: Quality Gate Status
Reliability: Reliability Rating Bugs
Security: Security Rating Vulnerabilities
Maintainability: Maintainability Rating Technical Debt Code Smells
Other: Lines of Code Duplicated Lines (%) Coverage

Configurable variables

DATABASE_HOST=postgres 
DATABASE_USER=postgres
DATABASE_PASSWORD=postgres
DATABASE_NAME=dega 
DATABASE_PORT=5432 
DATABASE_SSL_MODE=disable
MODE=development
OATHKEEPER_HOST=oathkeeper:4455

KAVACH_URL=http://kavach-server:8000
IMAGEPROXY_URL=http://127.0.0.1:7001
KETO_URL=http://keto:4466
KRATOS_PUBLIC_URL=http://kratos:4433
IFRAMELY_URL=http://iframely:8061
GOOGLE_KEY=<google api key for google factchecks>

MEILI_URL=http://meilisearch:7700
MEILI_KEY=<meilisearch server key>

CREATE_SUPER_ORGANISATION=true
SUPER_ORGANISATION_TITLE=<title of super organisation>
DEFAULT_NUMBER_OF_MEDIA=10
DEFAULT_NUMBER_OF_SPACES=2
DEFAULT_NUMBER_OF_POSTS=10
DEFAULT_NUMBER_OF_EPISODES=10
DEFAULT_USER_EMAIL=<super user email>
DEFAULT_USER_PASSWORD=<super user password>
  • Config file should be stored in project root folder with name config (ext can be yml, json, env)
  • Environment variables can also be set for configuration.

If running in docker, swagger docs can be accessed at http://localhost:7789/swagger/index.html

Tests

To run test cases go test ./test/... -coverpkg ./service/... -coverprofile=coverage.out

To watch the test results display in your browser: go tool cover -html=coverage.out