This story talks bout how to establish remote connection to EC2 machine from your windows machine using windows remote desktop connection.

Remote connection to EC2

Create an EC2 Machine

If you are new to AWS EC2 resource, Please refer the link to know how to create and launch EC2 instance in AWS.

Connect To EC2 Machine

If you are looking for how to establish the connection to EC2 machine from your windows machine please refer the link.

Setting your Machine ready

Update the package sources list to get the latest list of available packages in the repositories.

Update all the packages presently installed in our Linux system to their latest versions.


This story helps you to connect to EC2 machine, Using PuTTY and PuTTYgen.

Create an EC2 Machine

If you are new to AWS EC2 resource, Please refer the link to know how to create and launch EC2 instance in AWS.

PuTTY

Is a free and open-source terminal emulator, serial console and network file transfer application. It supports several network protocols, including SCP, SSH, Telnet, rlogin, and raw socket connection. It can also connect to a serial port. Download puTTY and install on your machine.

Create Private Key

First thing we need to do before we connect to EC2 machine is to generate a private key for authentication. …


This story runs you through the creation of an free tire EC2 machine, Step by Step with image.

AWS EC2

Amazon Elastic Compute Cloud (Amazon EC2) is a web service that provides secure, resizable compute capacity in the cloud.

Create an EC2 Instance

Select the EC2 service from AWS

This post talks about how to encrypt the user password using Sequelize and store in PostgreSQL.

Architecture Diagram ( IMG 1 )

Install via NPM

Usage with Sequelize Model

var userSchema = sequelize.define("users", { userId: { field: 'user_id', autoIncrement: true, primaryKey: true, type: Sequelize.INTEGER }, password: { field: 'user_password', type: Sequelize.STRING, allowNull: true }, name: { type: Sequelize.STRING, field: 'user_name', allowNull: false }, email: { type: Sequelize.STRING, field: 'user_email', allowNull: false }, }, { hooks: { beforeCreate: async (user) => { if (user.password) { const salt = await bcrypt.genSaltSync(10, 'a'); user.password = bcrypt.hashSync(user.password, salt); } }, beforeUpdate:async (user) => { if (user.password) {…


How to integrate Google SSO to your ReactJS application. And validate them and save details to your DB through your NodeJS express API.

Application Architecture ( IMG 1 )

React App

In react app we are using GoogleLogin plugin to integrate Google SSO.

Installation

Usage

Import the package in your component like login.component.tsx.

HTML Snippet

Use the below snippet in your component.

...
<GoogleLogin
clientId={CLIENT_ID}render={renderProps => (<button className=”signup-btn” onClick={()=>{renderProps.onClick()}} disabled={renderProps.disabled}><img src=”images/Image 4.png” alt=”” /><span className=”signup-label”>Sign in with Google</span>{/* <Loader type=”ThreeDots” color=”#255D4F” height={10} width={50} visible={googleLoaderIsVisible}/> */}</button>
onSuccess={(res)=>{googleLogin(res)}}
onFailure={(error)=>{googleLoginFailed(error)}}cookiePolicy={‘single_host_origin’}


How to manage your Amplify app with data isolation and Multi Tenancy.

Architectural Diagram ( IMG 1 )

Multi Tenancy

Multitenancy is that multiple customers of a cloud vendor are using the same computing resources. Despite the fact that they share resources, cloud customers aren’t aware of each other, and their data is kept totally separate. Multitenancy is a crucial component of cloud computing; without it, cloud services would be far less practical. Multitenant architecture is a feature in many types of public cloud computing, including IaaS, PaaS, SaaS, containers, and serverless computing.


Understand JavaScript Callback and Promise.

Little bit about JavaScript

JavaScript is a scripting language. They can be written right in a web page’s HTML and run automatically as the page loads.

JavaScript Engines

  1. V8 — in Chrome and Opera.
  2. SpiderMonkey — in Firefox.
  3. Chakra for IE
  4. ChakraCore for Microsoft Edge
  5. Nitro and SquirrelFish for Safari

What JavaScript can do?

JavaScript’s can do anything possibly any other programming language can do. But, “It’s capabilities greatly depend on the environment it’s running.

Client Side

  1. Add new HTML to the page, change the existing content, modify styles.
  2. React to user actions, run on mouse clicks, pointer movements, key presses.
  3. Send requests over the network to…

Lijoy C George

Enthusiastic about Technology and Computing

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store