From e581c4b1aa804863cf6a8665770221ed81dbe41a Mon Sep 17 00:00:00 2001 From: Alan Orth Date: Wed, 17 Oct 2018 09:50:30 +0300 Subject: [PATCH] README.md: Improve documentation --- README.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/README.md b/README.md index d11fd4f..65354df 100644 --- a/README.md +++ b/README.md @@ -21,8 +21,19 @@ Set up the environment variables for Solr and PostgreSQL: $ export DATABASE_USER=dspacestatistics $ export DATABASE_PASS=dspacestatistics $ export DATABASE_HOST=localhost + +Index the Solr statistics core to populate the PostgreSQL database: + + $ ./indexer.py + +Run the REST API: + $ gunicorn app:api +Test to see if there are any statistics: + + $ curl 'http://localhost:8000/items?limit=1' + ## Deployment There are example systemd service and timer units in the `contrib` directory.