Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

10 Steps to Cloud Happiness (Step 7): Retail Web Shop

DZone's Guide to

10 Steps to Cloud Happiness (Step 7): Retail Web Shop

The seventh step on your way to cloud happiness is deploying an online shopping experience. Break out the coupons and shopping carts.

· Cloud Zone ·
Free Resource

Download Microservices for Java Developers: A hands-on introduction to frameworks and containers. Brought to you in partnership with Red Hat.

Every journey starts at the beginning and this journey's no exception.

As previously presented in the introduction, it's possible to find cloud happiness through a journey focused on the storyline of digital transformation and the need to deliver applications in to a cloud service.

Application delivery and all its moving parts such as containers, cloud, platform-as-a-service (PaaS), and a digital journey requires some planning to get started. There's nothing like hands-on steps to quickly leverage real experiences as you prepare.

Previously we covered how to get a cloud, the use of a service catalog, how to add cloud operations functionality, centralizing business logic, process improvement, and the human aspect, so what's next?

10 steps cloud happiness
Retail web shopping experience.

A Web Shop

Our last article examined the internal human resources department and the processes found there. Now let's turn our attention outwards, to something everyone's doing these days: online shopping.

Walking the path to cloud happiness involves deploying all or parts of a retail shopping experience online in the cloud. With that in mind, let's leverage deployments of an example of a retail online web shop using containers, business logic, and a front-end framework for creating a separate application. Finally, a second example of retail web shopping is provided featuring cloud storage deployments, further expanding your experience with modular application deployments in several containers in the cloud.

Cool Store

The Cool Store is a retail web store demo where you will find rules, decision tables, events, and a ruleflow that is leveraged by a web application. The web application is a WAR built using the JBoss BRMS generated project as a dependency, providing an example project showing how developers can focus on the application code while the business analysts can focus on rules, events, and ruleflows in the JBoss BRMS product web based dashboard. This demo installs the application in the cloud leveraging the OpenShift Container Platform (OCP).

10 steps cloud happiness
Business logic captured in application rule flow.

Below are the instructions that include installing OCP as outlined in step one of this series called, Get a Cloud.

  1. First ensure you have an OpenShift container based installation, such as one of the following installed first:
  2. Download and unzip this demo.
  3. Download JBoss EAP & JBoss BRMS, add to installs directory (see installs/README).
  4. Run ' init.sh ' or ' init.bat ' file. ' init.bat ' must be run with Administrative privileges:
  5.    # The installation needs to be pointed to a running version
       # of OpenShift, so pass an IP address such as:
       #
       $ ./init.sh 192.168.99.100  # example for OCP.

Login to Cool Store to start exploring a retail web shopping project (the address will be generated by the init script):

  • OCP example:
    •  http://rhcs-coolstore-demo-appdev-in-cloud.192.168.99.100.nip.io/business-central ( u:erics / p:jbossbrms1! ) OCP example web app:
    •  http://rhcs-coolstore-demo-appdev-in-cloud.192.168.99.100.nip.io/brms-coolstore-demo Want to build the Cool Store demo from scratch? Try these hands-on online workshops.

Cool Store with cloud storage

10 steps cloud happiness
Cool Store with cloud storage.

This demo is to install Cool Store in the cloud with cloud data persistence on any OpenShift Container Platform. It delivers a fully functioning Cool Store containerized on OSE and backed by a persistent cloud data store.

The Cool Store is a retail web store demo where you will find rules, decision tables, events, and a ruleflow that is leveraged by a web application. The web application is a WAR built using the JBoss BRMS generated project as a dependency, providing an example project showing how developers can focus on the application code while the business analysts can focus on rules, events, and ruleflows in the JBoss BRMS product web based dashboard.

Alongside the Cool Store is a cloud storage container that provides persistent storage for the JBoss BRMS platform and connected via Kubernetes services.

Below are the instructions that include installing OCP as outlined in step one of this series called Get a Cloud.

  1. First ensure you have an OpenShift container based installation, such as one of the following installed first:
  2. Download and unzip this demo.
  3. Download JBoss EAP & JBoss BRMS, add to installs directory (see installs/README).
  4. Run 'init.sh' or 'init.bat' file. 'init.bat' must be run with Administrative privileges:
  5.    # The installation needs to be pointed to a running version
       # of OpenShift, so pass an IP address such as:
       #
       $ ./init.sh 192.168.99.100  # example for OCP.

Login to Cool Store to start exploring a retail web shopping project (the address will be generated by the init script):

  • OCP example:
    •  http://rhcs-coolstore-demo-appdev-in-cloud.192.168.99.100.nip.io/business-central ( u:erics / p:jbossbrms1! ) OCP example web app:
    •  http://rhcs-coolstore-demo-appdev-in-cloud.192.168.99.100.nip.io/brms-coolstore-demo Want to build the Cool Store demo from scratch? Try these hands-on online workshops.

These examples ensure exposure to retail online shopping experiences on your journey to cloud happiness, providing hands-on with container development and application delivery in the cloud.

Rest of the Story

10 steps cloud happiness
Looking for container-based application delivery
solution and hybrid cloud ready?

If you are looking for the introduction to the 10 steps series or any of the individual steps:

  1. Get a Cloud
  2. Use a Service Catalog
  3. Adding Cloud Operations
  4. Centralize Business Logic
  5. Real Process Improvement
  6. Human Aspect
  7. Retail Web Shop
  8. Curing Travel Woes
  9. Exploring Financial Services
  10. Agile Cloud Service Integration

So stay tuned as this list's tackled one-by-one over the coming weeks and months to provide you with a clear direction towards your very own application delivery in the cloud happiness.

Download Building Reactive Microservices in Java: Asynchronous and Event-Based Application Design. Brought to you in partnership with Red Hat

Topics:
cloud ,retail ,red hat ,jboss ,jboss brms ,developer ,appdev ,how to ,demo ,cloud suite

Published at DZone with permission of

Opinions expressed by DZone contributors are their own.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}