This is (so far) a prototype / demo for my proposal for GSoC 2020.
- 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>'
- Run the Flask shell with
flask shell
- 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()
- Install front end dependencies with
npm i
- Build JavaScript with
npm run dev
(usenpm run build
for production) - Run the tool with
flask run