Docker, Maven, Java (>=8), The stock-manager project.
In the stock-quote-manager folder, run
mvnw package && java -jar target/stock-quote-manager.jar
If you don't have the maven installed, go here. After this, you need to create the docker image
docker build -t igorrafa/stock-quote-manager .
You can change the image's name, but you must change it in the Dockerfile and docker-compose.yml as well.
Build the stock-manager project and run.
Create a new quote on a a given stock. The stock must be registered in the stock-manager
- id (String): stock id
- Date (Date): stock date
- Price (Float): stock price
List all the quotes registered for each stock, in the given format:
{
"id": "stockId",
"quotes": {
"quoteDate": "quotePrice"
}
}