wiltzius / btp-lemur

Inventory system for Books to Prisoners projects
0 stars 1 forks source link

Lemur v2.0

Books to Prisoners Inventory System

Tom Wiltzius, tom.wiltzius%gmail.com

Oct 2010-2016

Python dependencies listed in requirements.txt

Also requires a Google Books API key, yarn, webpack, MySQL or sqlite

To run tests: ./manage.py test

To run the server locally: -) pip install -r requirements.txt -) set up settings_secret.py; use SqlLite database -) Run development server with ./manage.py runserver -) install client deps with yarn in root directory -) install webpack globally if it isn't with yarn global add webpack (webpack 2.5.1 works) -) Build/watch webpack assets with webpack -w in base project directory

To manage the server in production: -) Various packages need be installed, including: apt-get install libffi-dev -) Use lemur-fcgi.conf in /etc/init/ -) Query service status, restart, etc with sudo initctl status lemur-fcgi -) Rebuild client, run migrations, and restart service with ./production_restart.sh

For site administration (production or local) -) Django admin site is located at /admin

Machine dependencies: -) yarn -) webpack -) MySQL or sqlite -) Ability to build python3 lxml from source or install system package (e.g. ubuntu python3-lxml) -) libssl-dev on Linux