0.5.0 • Published 4 years ago
@papermerge/viewer v0.5.0
Document Viewer
NodeJs package for (reusable) client side document viewer.
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 site/ folder there is a flask based application used as playground.
In order to setup and run playground, use following commands:
$ cd site
$ 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 site
$ 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 site
$ python index.py --delay 1 --no-cacheStart playground on port 5002:
$ cd site
$ python index.py --port 5002For all options:
$ cd site
$ python index.py --help