1
0
mirror of https://github.com/ilri/dspace-statistics-api.git synced 2024-11-22 14:25:01 +01:00

README.md: Improve documentation

This commit is contained in:
Alan Orth 2018-10-17 09:50:30 +03:00
parent e8d356c9ca
commit e581c4b1aa
Signed by: alanorth
GPG Key ID: 0FB860CC9C45B1B9

View File

@ -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.