Skip to content

tkaburagi/springcloud-msa-onlinestore-pcfdev

Repository files navigation

springcloud-microservicesapp-onlinestore

login top This is a Microservice application for Pivotal Cloud Foundry. Microsevices and 12 Factor Application elements are implemented. This is a very good an application for demonstration. This can run outside PCF using OSS Netflix but some changes and additinal development are needed. This app was developed for very short term. Refactoring is highly required. Authentication is actually fake :)

Pre-requisite

This application requires five PCF services.

Also, having Sumo Logic account information is desired but not mandtory.

Build & Push

  $ git clone https://github.com/tkaburagi1214/springcloud-microservicesapp-onlinestore.git
  $ cd springcloud-microservicesapp-onlinestore
  $ mvn package
  $ cf push

It might take several minutes to work fine. This is for Eureka discovery time.

Application Architecture

This Service has four applications, ui, service, user and order. Architecture

Tour

This is a simple online store app.

  • Login

  • Default users are "testuser", "tkaburagi" and "robmee"

  • Password is fake. You can put any value.

  • If you would like to change or add new users, you could edit "import.sql" in demo-onlinestore-user

  • After login, creating session and retrieve products via demo-onlinestore-service.

  • Home

  • You can see products list. Checkout button insert the product into orderhistrory table by demo-onlinestore-order

  • Menu

  • You can get account information via HTTP session and orderhistory via demo-onlinestore-order.

  • Java Information

  • Showing Environmental Information and current user via HTTP session. This is a good tool to show session is stored in Redis.

  • Kill Application

  • This causes System.exit(-1) which reproduces JVM accidental shutdown.

  • Search

  • Not implemented yet. Comming soon, I believe...

Demonstration

###1. Registry Server demo guide ###2. Circuit Breaker demo guide ###3. Config Server demo guide ###4. HTTP Session Redundancy by Redis demo guide ###5. Application Auto-recovery and Auto Load Brancing demo guide ###6. Log Streaming demo guide

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published