How to update node to a given version

Scenario:- Update node to the given version ? Solution:-  Using nvm:-Node Version Manager Install nvm  curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.8/install.sh | bash Reopen the terminal Check nvm is installed by typing nvm > enter > it will show nvm commands nvm install Node_Version_i_Want $ nvm install 8.9.4 Note:- After installing the latest node incase your build fails […]

Working with prettier in Visual studio code

“Whenever you are confronted with an opponent, conquer them with love.” What is prettier ? In layman terms its an handy tool that will format our code against some set standards, default formatting rules to achieve consistent code style. How to install prettier  in VS Code? Search > Prettier – Code formatter Note:- Incase you have […]

Most Useful Git commands

I have decided to stick with love. Hate is too great a burden to bear. List all the branches : git branch Pull the recent changes: git pull Create a feature branch : git checkout -b <new branch name> <parent branch name> Delete branch local: git branch -d <branch-name> or git branch -D <branch-name> Delete […]

How to add CSS modules into your react Application?

“Believe in yourself && Keep Learning” Step1:- In our example we have take “create-react-app” template as reference. Install this and than perform “yarn eject” What is yarn eject:- it will give you control of the create-react-app and you can install or play with config settings or package.json file. Step2:- Search for “css-loader” inside the file […]

How to check that javascript object contains the given key?

A wet man does not fear the rain. Issue:-How do I check if an object has a key in JavaScript? Example:- // Sample Object const REMINDER = “REMIND_ME”; reminderObj= { INBOX:`${REMINDER}_INBOX`, USERS:`${REMINDER}_USERS`, GROUPS:`${REMINDER}_GROUPS`, } Problem1: Now we want to check that our object have “INBOX” as key or not? Solution:-  Object.prototype.hasOwnProperty.call(reminderObj,”INBOX”); Note:- We could directly […]

How to create project in Sonar Qube ?

Problem:- How we can create(or provision) project using Sonar Qube UI. Solution:- We already know that we can Sonar Qube will automatically create a project when we run the code analysis but incase we want to manually provision the project before running the code scanning we can do that. 1)Login as administrator on sonar qube […]

How to install IE browser on Mac-OS?

The best time to plant a tree was 20 years ago. The second best time is now.Pre-requisite:- Virtual Environment to run the windows OS (with IE) on Mac OS. Step1:- Installing the virtual environment using VirtualBox (free option, we can use VMware also)a)Download Virtual Boxb)Install the setup Double click the .dmg file and follow the instructionsNote:- […]

Working with React-Router?

“An investment in knowledge pays the best interest.” Benjamin FranklinIn our previous post we started with creating our first react app and than we learned about some basic terminologies in react. Today we are going to focus on creating the router behaviour using react library.Incase you want to learn about filtering in react check the github code. […]