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:
parent
e8d356c9ca
commit
e581c4b1aa
11
README.md
11
README.md
@ -21,8 +21,19 @@ Set up the environment variables for Solr and PostgreSQL:
|
|||||||
$ export DATABASE_USER=dspacestatistics
|
$ export DATABASE_USER=dspacestatistics
|
||||||
$ export DATABASE_PASS=dspacestatistics
|
$ export DATABASE_PASS=dspacestatistics
|
||||||
$ export DATABASE_HOST=localhost
|
$ export DATABASE_HOST=localhost
|
||||||
|
|
||||||
|
Index the Solr statistics core to populate the PostgreSQL database:
|
||||||
|
|
||||||
|
$ ./indexer.py
|
||||||
|
|
||||||
|
Run the REST API:
|
||||||
|
|
||||||
$ gunicorn app:api
|
$ gunicorn app:api
|
||||||
|
|
||||||
|
Test to see if there are any statistics:
|
||||||
|
|
||||||
|
$ curl 'http://localhost:8000/items?limit=1'
|
||||||
|
|
||||||
## Deployment
|
## Deployment
|
||||||
There are example systemd service and timer units in the `contrib` directory.
|
There are example systemd service and timer units in the `contrib` directory.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user