Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gbv/epusta-server
https://github.com/gbv/epusta-server
electronic-publication epusta reposis statistics usagestatistics
Last synced: 4 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/gbv/epusta-server
- Owner: gbv
- License: gpl-3.0
- Created: 2019-09-05T12:44:19.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2024-10-11T18:34:12.000Z (3 months ago)
- Last Synced: 2024-11-10T03:18:18.784Z (2 months ago)
- Topics: electronic-publication, epusta, reposis, statistics, usagestatistics
- Language: PHP
- Homepage:
- Size: 92.8 KB
- Stars: 0
- Watchers: 7
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ePuSta-Server
The ePuSta-Server are designed to provide usagestatistics of electronic publications. Required are logfiles in epusta logformat. The statistics curently only accessable by an OAS compatible API. More APIs and a Webinterface comming soon.
## Getting Started
### Prerequisites
* Linux
* Solr 7### Installation
* Clone the git-hub ePuSta-Server to a local directory via *git clone https://github.com/gbv/ePuSta-Server.git*
* Create a Core in Solr and copy the Files, located in the *solr* directory, in the *conf* directory of the core.
* Copy the file *config/config.template* to *config/config* and set the values for the parameter.To use the OAS compatible API see.
## Work with the Core
Scripts to work with the core are located in the directory *bin*.
### Import Data
The script createSolrImport.php transform the Logfiles, generated by the ePuSta-logfilepaser, to a solr importable json-file. There are two levels of generating:
* DEBUG - all loglines where transformed
* PROD - transform only loglines with an publication identifierExample: Create the import file reposas-2019-12-01.json from the file reposas.2019-12-01.log.
```
./createSolrImport.php --file=reposas.2019-12-01.log --level=PROD > reposas.2019-12-01.json
```Push the data to the solr core.
```
/opt/solr/bin/post -c $SOLRCORE reposas.json
```