Finance service provides services to access various financial data, although currently supporting only stock data. It mainly showcases OpenFeign Clients and Netflix Hystrix circuit breakers. Finance service uses Alphavantage API to fetch real time hourly stock details by company codes. The alphavantage.apikey is an encrypted Alphavantage API key which can be created by free registration.
The CONFIG_SERVICE_PASSWORD is a required parameter to run finance-service as it enables to access finance-service.yml configuration file from the config-service. The FINANCE_SERVICE_PASSWORD is the client secret required to access oauth2 token for client id finance-service. Use the same FINANCE_SERVICE_PASSWORD configured in authorization-service. Optionally spring.profiles.active can be passed with value production which enables logback to send all logs to Elastic Stack instead of logging in the console by default.
$ java -jar finance-service/build/libs/finance-service-0.0.1-SNAPSHOT.jar
-DCONFIG_SERVICE_PASSWORD=xxxx
-DFINANCE_SERVICE_PASSWORD=yyyy
-Dspring.profiles.active=production