README ¶ Dega Server Releasability: Reliability: Security: Maintainability: Other: 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 ENABLE_HUKZ=true NATS_URL=nats://nats:4222 NATS_USER_NAME=natsuser NATS_USER_PASSWORD=natspassword HUKZ_URL=http://hukz:7790 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> TEMPLATES_PATH=web/templates 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 Expand ▾ Collapse ▴ Documentation ¶ There is no documentation for this package. Source Files ¶ View all Source files main.go Directories ¶ Show internal Expand all Path Synopsis cmd config docs service core core/action/author core/action/category core/action/event core/action/format core/action/info core/action/medium core/action/menu core/action/meta core/action/page core/action/permissions core/action/permissions/organisation core/action/permissions/space core/action/policy core/action/post core/action/request core/action/request/organisation core/action/request/space core/action/search core/action/space core/action/tag core/action/user core/action/webhook core/model fact-check fact-check/action/claim fact-check/action/claimant fact-check/action/google fact-check/action/rating fact-check/model podcast podcast/action podcast/action/episode podcast/model test service/core/category service/core/format service/core/medium service/core/menu service/core/meta service/core/page service/core/permissions/organisation service/core/permissions/space service/core/policy service/core/post service/core/request/organisation service/core/request/space service/core/search service/core/space service/core/tag service/core/user service/fact-check/claim service/fact-check/claimant service/fact-check/rating service/podcast service/podcast/episode util arrays Click to show internal directories. Click to hide internal directories.