Slide4

Multi-Tenant Application

Multi-Tenant Application built with REACT (FE) and AWS lambda (API), changes ist behavior content according to a tenant

Feature: Multitenancy, Multitenancy configuration CMS, UI CMS, Dynamic theme, theme CMS, Initialization/Localization, Cloud configuration VW Portal POC Task Page 2 Initialization/Localization, Cloud configuration

Tech stack: HTML5, ES6, SASS (node-sass-chokidar), React, Redux, JEST, react-intel, bootstrap, Webpack, VS Code, NodeJS, ExpressJS, DynamoDB, Git, GitHub, Concourse CI, Docker, AWS CloudFront (S3), AWS Lambda

GIT REPO FE – https://github.com/Sandeep821/Multi-Tenant-React-App

GIT REPO BE – https://github.com/Sandeep821/Multi-Tenant-Serverless-AWS-UI-Api (Serverless API deployed on AWS)

DEMO – http://multi-tenant-app-fe.s3-website.us-east-2.amazonaws.com/

  • [for Audi: userId : audi, password: demo]
  • [Bugatti: userId : bugatti, password: demo]

Architecture:

https://github.com/Sandeep821/Multi-Tenant-React-App/blob/master/docs/MultiTenant%20App.pptx

Credit Card Validation – Angular Directive

Codepen url – http://codepen.io/sandeep821/pen/BLdVgW

Valid credit card numbers to test :

Visa : 4532069777249404 , 4916014173889326
Master : 5194775997768660, 5494872713298895
Amex : 340251740623507, 375921122764396
Discover : 6011489471829878 , 6011782582773435

Ref : https://en.wikipedia.org/wiki/Luhn_algorithm

LUHN Formula (Mod 10) for Validation of Primary Account Number

Step 1: Double the value of alternate digits of the primary account number beginning with the second digit from the right (the first right–hand digit is the check digit.)

Step 2: Add the individual digits comprising the products obtained in Step 1 to each of the unaffected digits in the original number.

Step 3: The total obtained in Step 2 must be a number ending in zero (30, 40, 50, etc.) for the account number to be validated.

Prefix, Length, and Check Digit Criteria

CARD TYPE Prefix Length Check digit algorithm
MASTERCARD 51-55 16 mod 10
VISA 4 13, 16 mod 10
AMEX 34

37
15 mod 10
Diners Club/
Carte Blanche
300-305
36
38
14 mod 10
Discover 6011 16 mod 10
enRoute 2014
2149
15 any
JCB 3 16 mod 10
JCB 2131
1800
15 mod 10

Liferay 6.2 Parent and Child theme

First create Parent Theme

  • Go to File → New → Liferay Project.
  • Fill in the Project name and Display name fields.
  • Select the Liferay Plugins SDK and Portal Runtime you’ve configured.
  • Select Theme for your Plugin type.
  • Click Next.

1-theme-create-a-theme-project

  • Select a theme parent. Your theme inherits the parent theme’s styling as a base from
    which to build your theme. In addition to the _styled theme, you can choose to inherit
    from the _unstyled theme, which contains no styling. There’s also the classic theme
    that has a smooth look and feel and works well. I have chosen “classic”
  • Select your theme’s framework. You can select the Freemarker or Velocity template
    frameworks for your theme. I have chosen “Velocity”

 

——————————————————–Click here for more————————————————-
(more…)