Giter Site home page Giter Site logo

dzmitryh / customers-stores Goto Github PK

View Code? Open in Web Editor NEW

This project forked from spring-cloud-samples/customers-stores

0.0 1.0 0.0 2.81 MB

Two microservices for customers and stores

JavaScript 18.05% Groovy 0.24% ApacheConf 32.49% HTML 17.76% CSS 4.53% Shell 4.97% Batchfile 3.47% Java 18.49%

customers-stores's Introduction

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

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

customers-stores's People

Contributors

spencergibb avatar ghillert avatar odrotbohm avatar andrefaria avatar wilkinsona avatar

Watchers

Dima Gubin avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.