Side Navigation

X

React Basics

Node-Project-SFG Create: folder -> npm init to generate a project     npm i express (npm i express@4.17.0) // 4.x or latest and node i npm i mongodb npm i react react-dom npm i -D webpack webpack-cli npm i -D babel-loader @babel/cli @babel/core @babel/preset-env @babel/preset-react @babel/plugin-proposal-class-properties npm i nodemon npm i eslint babel-eslint eslint-plugin-react npm

Read More

Spring-boot-Application-project

Logging: logs/spring.log      Monitoring      Access      Debug               Events: error, warning, info, debug, trace Testing:

Palindrome Check

class Solution { public static void main(String[] args) { String str = “abcdcba”; System.out.println(methodName(str)); } public static boolean methodName(String str) { String nStr = “”; for(int i = str.length()-1; i>=0; i–){ nStr = nStr + str.charAt(i); }if(nStr.equals(str)){ return true; } return false; } }  

Algorithms and Data Structures

Arrays: 1) Two number Sum 2) Validate subsequence 3) Three number sum 4) Smallest difference 5) Move element to end 6) Monotonic array 7) Spiral traverse 8) Longest peak 9) Array of products 10) First duplicate value 11) Four number sum 12) Subarray sort 13) Largest range 14) Min rewards 15) Zigzag traverse 16) Apartment

Read More

Deploy Spring boot app to GKE (Google Kuberenetes Engine)

create cluster -> create project (defaul namespace) -> connect cluster to local terminal. create Dockerfile in root directory -> deployement.yml; docker build -> docker push -> kubectl apply -f deployment.yml -> kubectl get pods -> kubectl get services –all -namespaces   Install Google Cloud SDK and add google-sdk/bin/gcloud  to the PATH then configure kubernetes by

Read More