/Tap-And-Eat-MicroServices

This is an output project from Microservice Archicture with Spring Cloud Training...

Primary LanguageShellApache License 2.0Apache-2.0

"#Tap-And-Eat-MicroServices"

Note: Documentation is not yet complete. All micro services will be documented.

Tap-And-Eat-MicroServices


Testing the microservices in Ubuntu 16.04 VM

Required dependency>

- java 8 - maven 3.0 - docker engine - docker compose

Installing Maven:

apt-get install maven


Installing java 8:

http://tipsonubuntu.com/2016/07/31/install-oracle-java-8-9-ubuntu-16-04-linux-mint-18/

Installing docker engine:

https://www.digitalocean.com/community/tutorials/how-to-install-and-use-docker-on-ubuntu-16-04

Installing docker-compose:

https://www.digitalocean.com/community/tutorials/how-to-install-docker-compose-on-ubuntu-16-04

Testing the microservices with Docker:

1. $ git clone https://github.com/jferrater/Tap-And-Eat-MicroServices.git 2. $ cd Tap-And-Eat-MicroServices 3. $ mvn clean install or mvn package -Dmaven.test.skip=true --> if you want to skip the unit test 4. $ cd docker 5. $ docker-compose up *Note: This consumes resources and your VM may hang up sometimes. Wait for the docker to complete processing. I am using Ubuntu 16.04 VM with 4Gb RAM. 6. Open Firefox and check discovered microservices at http://localhost:8888

Microservices

This is a microservice architecture project for a restaurant or stores. Microservices are discovered automatically by a discovery service. Configurations are also centralized.

  • ConfigService
  • DiscoveryService
  • AccountService
  • PriceService
  • CustomerService
  • StoreService
  • ItemService
  • FoodTrayService

ConfigService

The ConfigService provides centralized configuration.

DiscoveryService

Discovers micro services.

AccountService

The AccountService provides API for managing accounts. It has the CRUD API in /accounts endpoint.

PriceService

The PriceService provides API for managing prices. It has the CRUD api at /prices endpoint.

StoreService

The StoreService provides API for managing stores.

CustomerService

The CustomerService provides API for managing customers.