- Python 2.7
- pip (if not using Docker)
- PHP 5.6
- SQLite3
- Docker (optional)
- Make (optional)
This project comprises three main parts:
cli/
: the CLI, using Python 2.7admin/
: the Admin Interface, using PHP 5.6.db
: the shared SQLite3 database file
.db
will not exist initially and will be generated when the CLI is run for the first time.
conifg/
contains configuration filescourtlistener_api.token
contains the CourtListener API Authorization Token (see Setup)justices.csv
is used to initially populate thejustices
table
out/
contains the generated agreement chartsinit.sql
defines the SQLite3 database__main__.py
is the CLI's entry point.
All Python files include their own documentation.
lib/
contains PHP files with helper functions to be included as neededstyles/
contains CSS stylesheets
The remaining PHP files are the frontend.
-
Navigate to https://www.courtlistener.com/api/rest-info/ to view your "API Authorization Token"
-
Place the token into the file
cli/config/courtlistener_api.token
If you have Docker installed, skip the next section.
In the base directory, install the required Python modules via pip:
pip install [--user] -r cli/requirements.txt
Navigate to the base directory.
If you have docker installed, run docker-compose up --build
. Alternatively, if you have Make installed as well, simply run make
.
Otherwise, run python -m cli
.
If you started the CLI via Docker, the Admin Interface will be available at localhost:8080
.
Otherwise, you are responsible for installing this project on a web server that can render the PHP Admin Interface.