Giter VIP home page Giter VIP logo

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

andrefaria avatar ghillert avatar odrotbohm avatar spencergibb avatar wilkinsona avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

customers-stores's Issues

Merge issue in pom.xml

In master looks like a merge wasn't resolved before commit

<<<<<<< HEAD
        <spring-cloud.version>1.0.0.BUILD-SNAPSHOT</spring-cloud.version>
        <!-- TODO: this isn't working -->
        <spring-data-releasetrain.version>Evans-RC1</spring-data-releasetrain.version>
        <!-- TODO: ... so we need these -->
        <spring-data-rest.version>2.2.0.RC1</spring-data-rest.version>
        <spring-data-commons.version>1.9.0.BUILD-SNAPSHOT</spring-data-commons.version>
        <tomcat.version>8.0.9</tomcat.version>
=======
        <spring-cloud.version>1.0.0.RC1</spring-cloud.version>
        <spring-data-releasetrain.version>Evans-SR1</spring-data-releasetrain.version>
>>>>>>> 32feb16... Rationalize versions

Mention to install Lombok

Probably its good to mention Lombok is involved. I was new to it & took me a while what was wrong.

customers-stores-ui | connection refued

Hi everyone
i'm trying to install this project but after execution of "spring run command" (like it has described into readme file) i receive the following error

Caused by: java.net.ConnectException: Connection refused
    at java.net.PlainSocketImpl.socketConnect(Native Method)
    at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)
    at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)
    at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)
    at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
    ....

The other 2 projects are working without any problem, and i can reach the localhost page.

Could anyone help me?

Thanks in advance
BR
Daniele

Bootify UI

Integration UI with Spring Boot using frontend-maven-plugin.

Error running UI

I'm getting the following error running "spring run app.groovy"

1: unable to resolve class EnableZuulProxy , unable to find class for annotation
@ line 1, column 1.
@EnableZuulProxy
^

2: unable to resolve class EnableDiscoveryClient , unable to find class for annotation
@ line 2, column 1.
@EnableDiscoveryClient
^

creating stores springcloud/stores times out

when running
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

it times out

Timed out waiting for the container to come up.
This typically happens because docker layers can take time to download.
Lattice is still downloading your application in the background.
To view logs:
ltc logs stores
To view status:
ltc status stores

App will be reachable at:
http://stores.192.168.11.11.xip.io

First springcloud/customers downloads and runs fine

StoreIntegration hard coded uri

We are using Eureka and AWS. By nature the uri for services changes often. I see zuul on the client side but what handles dynamic uri's for inter-service communication?

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.