This projects intends to gather financial news about companies together with its impact on their corresponding stock course.
To start the Docker Compose run the buildAllAndRun.ps1 File inside powershell. It automates all building and running of the docker commands.
via the flag -rebuild
you can choose which docker container should be rebuild from the sources.
If the -rebuild
option is missing all containers will be new build.
If the -rebuild
option is empty or none only docker-compose down
and docker-compose up
will be run sequentially.
The Last command works with all mircoservices
Command | Action |
---|---|
buildAllAndRun.ps1 | Everything will be rebuild |
buildAllAndRun.ps1 -rebuild none | nothing will be rebuild |
buildAllAndRun.ps1 -rebuild articleprocessor | only the article processor will be rebuild |
To run the scraper, you need to have docker, docker-compose and maven installed. Further you need to build the following .jar artifacts via maven with:
mvn clean install
in the following folders:
- /ArticleProcessor
- /StockProcessor
You need to build all Node Modules for the SingleScraper via:
npm install
inside:
- /singleScraper
To build the docker images from the root directory you need to run each command:
- /ArticleProcessor:
docker build -t articleprocessor .\articleprocessor
- /StockProcessor:
docker build -t articleprocessor .\articleprocessor
- /database:
docker build -t database .\database
- /singleScraper:
docker build -t singlescraper .\singleScraper
After that you are able to start the docker-compose via:
docker-compose up