Skip to content
This repository has been archived by the owner on Jul 20, 2021. It is now read-only.
/ dega-server Public archive

A lightweight, scalable & high performant CMS written in Go. Developed for modern web features with all the best practices built-in.

License

Notifications You must be signed in to change notification settings

factly/dega-server

Repository files navigation

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
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

About

A lightweight, scalable & high performant CMS written in Go. Developed for modern web features with all the best practices built-in.

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages