Skip to content

Web application to publish video fact-checks. Developed in Go and React.

License

Notifications You must be signed in to change notification settings

factly/vidcheck

Repository files navigation

Vidcheck

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

Setting up development environment for Vidcheck

Pre-requisites

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

Clone the required repositories

    git clone https://github.com/factly/kavach-server.git kavach/kavach-server
    git clone https://github.com/factly/kavach-web.git kavach/kavach-web

The folder structure after cloning the above repositories should look like the following:

    .
    ├── README.md
    ├── docker-compose.yml
    ├── kavach
    ├── kratos
    ├── client
    ├── server
    ├── oathkeeper
    └── pg-init-scripts

Starting the application

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

      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 Vidcheck 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)
DATABASE_HOST=postgres 
DATABASE_USER=postgres
DATABASE_PASSWORD=postgres
DATABASE_NAME=vidcheck 
DATABASE_PORT=5432 
DATABASE_SSL_MODE=disable

KETO_URL=http://keto:4466
KAVACH_URL=http://kavach-server:8000
OATHKEEPER_HOST=oathkeeper:4455
KRATOS_PUBLIC_URL=http://kratos:4433
DEGA_URL=http://dega-server:8000
DEGA_INTEGRATION=false

IFRAMELY_URL=http://iframely:8061
MEILI_KEY=password
MEILI_URL=http://meilisearch:7700
IMAGEPROXY_URL=http://127.0.0.1:7001

TEMPLATES_PATH=web/templates/*

SUPER_ORGANISATION_TITLE=Organisation Title
DEFAULT_NUMBER_OF_MEDIA=10
DEFAULT_NUMBER_OF_SPACES=2
DEFAULT_NUMBER_OF_VIDEOS=10
CREATE_SUPER_ORGANISATION=true
DEFAULT_USER_EMAIL=EMAIL
DEFAULT_USER_PASSWORD=PASSWORD
  • 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=vidcheck
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

Web application to publish video fact-checks. Developed in Go and React.

Resources

License

Stars

Watchers

Forks

Packages

No packages published