-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathREADME
40 lines (31 loc) · 1.24 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
###
### 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