Herñi – a vending machine
build with ❤️ using microservices architecture and Docker
This project was built for one of the university courses. The idea to use microservices architecture came from a problem, that everyone in the team wanted to write code in language of their choice.
That's why Docker came into the play. It perfectly applies for this kind of architecture.
Application consists of four services:
- Interface - frontend in another words. It render view and proxy requests to logic.
- Logic - is a heart of application. All business logic is here.
- Charger - emulates card charging.
- Filler - fills vending machine with products.
In terminal type:
$ docker-compose up -d
First time this command will build all images. Then it will reuse them to build containers.
Application will start on port 8080
of host machine or docker-machine
(if Docker Toolbox is used).
Feel free to contribute, improve services or add new.