Skip to content
/ dega Public

A lightweight, scalable & high performant CMS written in Go & React. 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

Repository files navigation

Dega

Setting up development environment for Dega

Pre-requisites

  • Currently the setup is only tested for development on Mac OS and Linux
  • Install and run Docker and Docker Compose

Starting the application

  • Execute the following command docker-compose command to start Dega

      docker-compose up
    
  • When the application is started using docker-compose, a directory with name factly will be created at the root level to perisit all the data

Access the application

Once the application is up and running you should be able to access it using the following urls:

Stopping the application

  • Execute the following command docker-compose command to stop Dega and all the components

      docker-compose down
    

Env files to be added

  • Create config file with name config (and extension .env, .yml, .json) in server/ and add config variables (eg. below)
MODE=development

KAVACH_URL=http://kavach-server:8000
IMAGEPROXY_URL=http://127.0.0.1:7001
KETO_URL=http://keto:4466
NATS_URL=http://nats:4222
KRATOS_PUBLIC_URL=http://kratos:4433
IFRAMELY_URL=http://iframely:8061
OATHKEEPER_HOST=oathkeeper:4455

MEILI_URL=http://meilisearch:7700
MEILI_KEY=password

DATABASE_HOST=postgres 
DATABASE_USER=postgres
DATABASE_PASSWORD=postgres
DATABASE_NAME=dega 
DATABASE_PORT=5432 
DATABASE_SSL_MODE=disable

TEMPLATES_PATH=web/templates/*

DEFAULT_NUMBER_OF_MEDIA=10
DEFAULT_NUMBER_OF_SPACES=2
DEFAULT_NUMBER_OF_POSTS=10

CREATE_SUPER_ORGANISATION=true
SUPER_ORGANISATION_TITLE='Dega Administration'
[email protected]
DEFAULT_USER_PASSWORD=Password@321
  • Create a folder companion in root / and create .env file inside companion and add config variables (eg. below)
COMPANION_GOOGLE_KEY=GOOGLE_KEY
COMPANION_GOOGLE_SECRET=GOOGLE_SECRET
COMPANION_AWS_ENDPOINT=http://localhost:9000
COMPANION_AWS_BUCKET=dega
COMPANION_AWS_KEY=miniokey
COMPANION_AWS_SECRET=miniosecret
COMPANION_DOMAIN=localhost:3020
COMPANION_PROTOCOL=http
COMPANION_DATADIR=/
COMPANION_SELF_ENDPOINT=localhost:3020
NODE_ENV=dev

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published