Git Product home page Git Product logo

vidcheck's Introduction

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

vidcheck's People

Contributors

shreeharsha-factly avatar hetjagani avatar arghyaiitb avatar deshetti avatar mishra22 avatar fyrepenguin avatar rahul91 avatar

Stargazers

John D. Pope avatar  avatar

Watchers

James Cloos avatar Mahesh Thipparthi avatar  avatar Niranjan Tallapalli avatar  avatar Rakesh Dubbudu avatar  avatar

Forkers

johndpope

vidcheck's Issues

Remove Clear Option in Calendar

The clear option is confusing in calendar selection, example if the user clears the claim date by mistake he can revert the changes, but if there's no clear option then he can go select it manually and change it.

Minor issues in VidCheck

@shreeharsha-factly , I did some testing, and here are my observations:

  • Sidebar should close automatically not closing when you create a new claim
  • When a new claim is added, the drawer menu is not closing
  • Confirm with Rakesh if Review Sources should be mandatory
  • Unable to see the status of a Fact Check right now
  • Show notification on what happened when clicking save or publish or marked as ready to publish. Like, Fact Check Saved, Fact Check Published, Fact Check marked as Ready to Publish
  • Change the studio page title from Vidcheck to VidCheck
  • Preview should just show the rating title instead of the word Preview
  • Add filters( categories, ratings, tags, statuses, claimants) on video list page

Ctrl Z: Is not working in description content box

When we use Ctrl Z in description content, it's not getting changed, but early items are getting change such as facts and claim text.

Note: It's working one's or twice, but not working always.

I had even tested Ctrl Z selecting the description box and it didn't work.

Screenshot 2021-06-05 at 5 15 55 PM

Add fields to video entity

Add the following fields in analysis entity to keep it consistent with claim in Dega:

  • claim_date
  • checked_date
  • claimant - Dependent on the issue: #21

Changes to Videos UI to keep it consistent with Dega

Add the following fields to video entity to keep it consistent with claim in Dega:

  • Claimant - Dependent on the issue: #21
  • Claim Date - Dependent on the issue: #22
  • Checked Date - Dependent on the issue: #22

Label changes

  • Change the label from Fact check to Fact

Following issues are dependent on #24

Add an option on the landing page to create dummy fact checks for quick exploration

For folks who want to quickly install and explore the tool, it might be beneficial to have an option on the landing page to install dummy data. Needless to say, clicking on the button should install the dummy data defined in the data files here

  • Add sample json files for dummy data
  • Option of adding dummy data should be only available when the instance doesn't have any fact-checks, ratings, claimants
  • Create an env param, INSTALL_DUMMY_DATA which automatically installs dummy data during the startup if there is no existing data for the entities: fact-checks, ratings, claimants

Add policies

  • media
Medium Administrator Editor Author Contributor Subscriber
Read Y Y Y Y (own)
Create Y Y Y Y (own)
Update Y Y Y (own)
Delete Y Y
  • factchecks
Post Administrator Editor Author Contributor Subscriber
Save Draft Y Y Y Y (own)
Read Y Y Y Y (own)
Publish Y Y
Update Y Y Y (own) Y (own)
Delete Y Y
  • claimants
Claimant Administrator Editor Author Contributor Subscriber
Read Y Y Y Y
Create Y Y Y Y
Update Y Y Y (own)
Delete Y Y
  • ratings
Rating Administrator Editor Author Contributor Subscriber
Read Y Y Y Y
Create Y Y
Update Y Y
Delete Y Y

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.