https://github.com/zkxs/elite-etl
Dumps Elite Dangerous data into PostgreSQL
https://github.com/zkxs/elite-etl
Last synced: about 2 months ago
JSON representation
Dumps Elite Dangerous data into PostgreSQL
- Host: GitHub
- URL: https://github.com/zkxs/elite-etl
- Owner: zkxs
- License: mit
- Created: 2018-09-29T19:18:12.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2021-09-19T00:51:07.000Z (over 3 years ago)
- Last Synced: 2025-01-22T20:28:08.415Z (3 months ago)
- Language: Scala
- Homepage:
- Size: 58.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
README
# Elite ETL
An extract/transform/load application that takes data from the [EDDB API] and loads it into a [PostgreSQL] database. This allows you to run custom queries on the data. Elite ETL is cache-aware, and will not download new data from EDDB until the cached data expires.## Setup
1. Install [PostgreSQL].
2. Install [PostGIS].
3. Set up the `elite` database using [elite.sql].
4. Set up your `config.properties` file, and place it the root directory
of this project.
Example:
```properties
db.connection.url=jdbc:postgresql://localhost:5432/elite\
?user=elite\
&password=hunter1\
&ssl=true\
&sslMode=require\
&sslfactory=org.postgresql.ssl.NonValidatingFactory\
&sslhostnameverifier=net.michaelripley.elite_etl.db.AllowAllHostnameVerifier
```## Building and Running
Build and run the project with [sbt].
```
$ sbt
sbt:elite-etl> compile
sbt:elite-etl> run
```Typical output:
```
wrote 20534 systems
wrote 62313 stations
wrote 76469 factions
wrote 118674 faction presences
wrote 82430 station economies
finished in 21.757s
```## Example queries
- [Empire/Federation rank grind locations][rank grind query][EDDB API]: https://eddb.io/api
[PostgreSQL]: https://www.postgresql.org/
[PostGIS]: https://postgis.net/
[sbt]: https://www.scala-sbt.org/
[elite.sql]: doc/elite.sql
[rank grind query]: doc/elite-rank-grind-query.sql