GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - spring-cloud-samples/customers-stores: Two microservices for customers and stores

BranchesTags
Open more actions menu

Latest commit

 

History

161 Commits
161 Commits

Folders and files

NameName
Last commit message
Last commit date
.github
.github
 
 
.mvn
.mvn
 
 
customers-stores-ui
customers-stores-ui
 
 
rest-microservices-customers
rest-microservices-customers
 
 
rest-microservices-store
rest-microservices-store
 
 
.gitignore
.gitignore
 
 
.travis.yml
.travis.yml
 
 
insertCustomer.sh
insertCustomer.sh
 
 
mvnw
mvnw
 
 
mvnw.cmd
mvnw.cmd
 
 
pom.xml
pom.xml
 
 
readme.md
readme.md
 
 

Repository files navigation

REST based micro-services sample

  • Three Spring Boot based Maven projects that are standalone applications:
    • Stores (MongoDB, exposing a few Starbucks shops across north america, geo-spatial functionality)
    • Customers (JPA)
    • Customers UI (Angular and Spring Boot CLI backend)
  • The customers application tries to discover a search-by-location-resource and periodically verifying it's still available (see StoreIntegration).
  • If the remote system is found the customers app includes a link to let clients follow to the remote system and thus find stores near the customer.
  • Hystrix is used to monitor the availability of the remote system, so if it fails to connect 20 times in 5 seconds (by default) the circuit will open and no more attempts will be made until after a timeout.

Running Instructions

  • Before try to run the services, make sure you have Rabbitmq Server and MongoDB running on localhost.
  • Make sure you have [Spring Boot for Groovy installed] (http://docs.spring.io/spring-boot/docs/current-SNAPSHOT/reference/htmlsingle/#getting-started-gvm-cli-installation)
  • Make sure [Spring Cloud CLI is installed] (https://github.com/spring-cloud/spring-cloud-cli)
  • To run the services, just execute "mvn spring-boot:run" in each project subfolder, and "spring run app.groovy" for the UI.

IDE Support

To use these projects in an IDE you will need the project Lombok agent. Full instructions can be found in the Lombok website. The sign that you need to do this is a lot of compiler errors to do with missing methods and fields.

Docker and Lattice

$ ltc create --memory-mb 0 --timeout 5m -e RABBITMQ_HOST=10.0.1.170 -e RABBITMQ_PORT=61001 customers springcloud/customers
$ ltc create --memory-mb 0 --timeout 5m -e MONGODB_HOST=10.0.1.170 -e MONGODB_PORT=61002 -e RABBITMQ_HOST=10.0.1.170 -e RABBITMQ_PORT=61001 stores springcloud/stores

About

Two microservices for customers and stores

Resources

Readme

Code of conduct

Code of conduct

Security policy

Security policy
Activity
Custom properties

Stars

471 stars

Watchers

43 watching

Forks

305 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.