To run the following things should be installed on the system.
- Python
- Redis-server
- node (used by ReadabiliPy to access Mozilla's readability.js)
- Clone the repo
cd
into directorypython3 -m venv venv
// isolates and creates a virtual env. venv/bin/activate
// activate venvpip install -r requirements.txt
// installs requirementsnpm install
// installs node requirementsflask db upgrade
// creates the dbflask run
// starts the flask server- open new terminal tab
redis-server
// start redis server- open new terminal tab
. venv/bin/activate
// activate venvrq worker lurnby-tasks
// start listening for bg tasks
The app also uses some apis to do what it needs to do.
- amazon s3 for storing images from epubs
- google for auth
- sendgrid for sending emails.
These need to be set in a .env file, see the .env.example file.
Some more details for mac are in mac-install-notes.md.