The purpose of this project is to show the communication between microservices.
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on production enviroment.
Docker
Build the services
docker-compose build
Run services
docker-compose up -d
Make a salary prediction with a post to http://localhost:5000/predictions with a body like:
{
"experience":[10]
}
Every time that you make a prediction, the service, save that response as a cache in redis.
Every time prediction salary service is called, this service save that action like a record. You can get all the records with a get in
http://localhost:61945/Records
Stop and remove the services
docker-compose down
Open Angular client
http://localhost:8888
- Api gateway
- Authentication
- ssl
docker stack deploy -c docker-compose.prod.yml --with-registry-auth salary-app
This project is licensed under the MIT License - see the LICENSE.md file for details