1
0
mirror of https://github.com/ilri/dspace-statistics-api.git synced 2025-05-13 00:17:47 +02:00

Refactor project structure

This follows guidance from several well-known Python best practices
guides. Basically, the idea is create a package for the application
that is comprised of several re-usable modules.

See: https://docs.python-guide.org/writing/structure/
See: https://realpython.com/python-application-layouts/
This commit is contained in:
2018-10-26 18:14:27 +02:00
parent 754663f062
commit c027f01b48
7 changed files with 10 additions and 10 deletions

View File

@ -24,11 +24,11 @@ Set up the environment variables for Solr and PostgreSQL:
Index the Solr statistics core to populate the PostgreSQL database:
$ ./indexer.py
$ python -m dspace_statistics_api.indexer
Run the REST API:
$ gunicorn app:api
$ gunicorn dspace_statistics_api.app:api
Test to see if there are any statistics: