Skip to content
This repository has been archived by the owner on May 4, 2023. It is now read-only.
/ herni Public archive

Herni – a vending machine

License

Notifications You must be signed in to change notification settings

skibish/herni

Repository files navigation

Herñi

Herñi – a vending machine

build with ❤️ using microservices architecture and Docker

Story

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.

Architecture

Herni 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.

How to start

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).

Contribute

Feel free to contribute, improve services or add new.