Giter Site home page Giter Site logo

sirisha-amilineni / wealthcare-monolith-maven-app Goto Github PK

View Code? Open in Web Editor NEW

This project forked from r-ranjeet-kakade/wealthcare-monolith-maven-app

0.0 0.0 0.0 2.32 MB

This is a Maven application for WealthCare App

License: Apache License 2.0

Shell 0.73% Java 99.11% Dockerfile 0.16%

wealthcare-monolith-maven-app's Introduction

wealthcare-monolith-maven-app

WealthCare is a microservice application deployed using Maven.

PERSONAS

The application consists of the below 3 Personas.

1) Business Manager

Business Manager can do the following operations.

  • Creates Wealth manager
  • Creates Customer
  • Assign Wealth manager to the customer

2) Wealth Manager

Wealth Manager can do the following operations.

  • Manage financial plan for Customer
  • Create Goals
  • Create Investment
  • View Customer Portfolio
  • View Customer profile

3) Customer

Customer can do the following operations.

  • View Financial Plan
  • View Portfolio
  • View Profile

LICENSE

The Wealthcare monolith Application is licensed under Apache-2.0 License.

TOOLS AND TECHNOLOGIES

  • Java
  • EJB
  • Websphere
  • DB2 database

DEPLOYING THE APPLICATION IN OPENSHIFT

Prerequisites

    1. Install the below dependencies in your Openshift Environment.
sudo yum install docker
sudo yum install maven
    1. Fork the git repository and then clone it into your environment. Use you Personal Access Token if needed.
    1. Go to the below folder and build the EAR file.
ls
cd wealthcare-monolith-maven-app/config/
ls
chmod +x 01-buildEar.sh 03-build-dockerhub.sh
ls
./01-buildEar.sh
    1. Check if the OpenShift Image Registry is present in your environment.
oc get route -n openshift-image-registry
oc get route -n openshift-image-registry | awk '{print $2}' | awk 'NR==2'

# Change the path below
docker login -u $(oc whoami) -p $(oc whoami -t) <above-image-registry-path>

# Check if docker pull is successful
docker pull hello-world

    1. Create a project namespace.
cd wealthcare-monolith-maven-app/config/
oc create -f 02-namespace.yaml
oc project wealthcare-monolith-ns
    1. Build the docker hub file.
cd wealthcare-monolith-maven-app/config/
./03-build-dockerhub.sh
    1. Check if the image was successfully pulled and tagged
oc get images | grep monolith
    1. Create a MYSQL Database in the namespace.
oc new-app -e MYSQL_USER=admin -e MYSQL_PASSWORD=admin -e MYSQL_ROOT_PASSWORD=root -e MYSQL_DATABASE=BLUDB mysql:latest
oc expose service/mysql

# Get the pod name
oc get pods

# Login into the mysql pod bash
oc rsh <mysql-pod-name>

#Login as the admin user. you have to provide the password as well.
mysql -u admin -p

# Check if your database is listed and then use the same.
show databases;
use BLUDB;

# Check if any tables are listed.
show tables;

# Copy the MySQL Schema and Data from the wealthcare-monolith-maven-app/sql/ path.
# Copy the content from both the .sql files and paste in the mysql bash itself.

# Check if the tables were created and populated properly.
show tables;
select * from WCUSERS;

-9) Create a Config Map in the project namespace. Before running the command, go to the file and change the URL path (add your cluster URL) and the MYSQL connection credentials (only if you have changed the username and password for the same)

cd wealthcare-monolith-maven-app/config/
oc create -f 04-config-map.yaml
    1. Deploy the Wealthcare application using the below yaml file. Before running the command, go to the file and change the image name (add your cluster URL).
cd wealthcare-monolith-maven-app/config/
oc create -f 05-monolith.yaml
    1. Ensure if all the deployments are Running and in Ready State (1/1).
oc get all
    1. Access the console through "wealthcare-monolith-app" Route created in the namespace. You need to add the following path to the Route URL.
  <route-URL>/wcareWeb/
    1. Use the below Personas to login and check for the functionalities.
    Username / Password -------- Persona
     1) sam / sam      --------     Wealth Manager
     2) harry / harry  --------     Business Manager
     3) sandy / sandy  --------     Customer
    

wealthcare-monolith-maven-app's People

Contributors

r-ranjeet-kakade 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.