https://github.com/plippe/java-stock-fetcher
https://github.com/plippe/java-stock-fetcher
Last synced: over 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/plippe/java-stock-fetcher
- Owner: plippe
- License: unlicense
- Created: 2014-11-01T17:23:48.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2022-09-29T20:49:03.000Z (over 3 years ago)
- Last Synced: 2025-01-17T23:43:59.461Z (over 1 year ago)
- Language: Java
- Size: 109 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE.md
Awesome Lists containing this project
README
# Java Stock Fetcher
This project contains multiple Akka services that request stock values from
Yahoo and stores them in a database. Most of the logic is divided to be imported
via Maven and reused in another project.
### Running the application
This project currently uses a postgres database. The easiest way to get setup is
by running the following docker command. It will spin up a postgres instance,
set the appropriate credentials, and create the tables.
```bash
docker run \
--name java-stock-fetcher-postgres \
--env POSTGRES_USER=admin \
--env POSTGRES_PASSWORD=admin \
--env POSTGRES_DB=secret \
--publish 5432:5432 \
--volume $PWD/store/sql:/docker-entrypoint-initdb.d \
--detach \
postgres
```
Once your database is up and running, you will need to start the different akka
systems.
```bash
mvn install
mvn exec:java -pl store_akka
mvn exec:java -pl market_provider_akka
mvn exec:java -pl dispatcher_akka
```
This should download the value of the symbols found in `dispatcher_akka`'s
`application.conf` every minute.