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:
@ -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:
|
||||
|
||||
|
Reference in New Issue
Block a user