0.5.0 • Published 4 years ago
@papermerge/dual-commander v0.5.0
Dual Commander
Document browser featuring dual panes.
Requirements
The core requirements for this project are NodeJs, npm (node package manager) and webpack:
Installation
Install all nodejs dependent packages:
$ npm i # looks in package.json and installs dependenciesPlayground
In playground/ folder there is a flask based application used as playground.
In order to setup and run playground, use following commands:
$ cd playground
$ virtualenv .venv -p /usr/bin/python3.7
$ source .venv/bin/activate
$ pip install -r requirements.txt
$ cd ..
$ make runPlayground flask app provides couple of extra features to simulate more realistic scenarios - like slower server responses.
To slow down all server side responses with two seconds, start playground using following command:
$ cd playground
$ python index.py --delay 2 # delays all server side responses with 2 secondsTo slow down server side responses with one second AND disable browser's assets cache (browsers try to very hard to cache static assets) use command:
$ cd playground
$ python index.py --delay 1 --no-cacheStart playground on port 5002:
$ cd playground
$ python index.py --port 5002For all options:
$ cd playground
$ python index.py --help