Skip to content

Latest commit

 

History

History
25 lines (22 loc) · 896 Bytes

README.md

File metadata and controls

25 lines (22 loc) · 896 Bytes

Media Data Verification Tool

This is (so far) a prototype / demo for my proposal for GSoC 2020.

Quick start guide

  1. Create the file mdvt/config/config.py with the following contents:
config = {}

config['SECRET_KEY'] = '<flask secret key>'
config['OAUTH_URI'] = 'https://meta.wikimedia.org/w/index.php'
config['OAUTH_TOKEN'] = '<oauth token>'
config['OAUTH_SECRET'] = '<oauth secret>'
config['DATABASE_URI'] = '<sqlalchemy db uri>'
  1. Run the Flask shell with flask shell
  2. Run the following commands in the Flask shell to create tables for the database:
>>> from mdvt.database.models import User, UserSetting, Contribution
>>> from mdvt import db
>>> db.create_all()
  1. Install front end dependencies with npm i
  2. Build JavaScript with npm run dev (use npm run build for production)
  3. Run the tool with flask run