Add Authentication to Mongodb with Node.js

I think the first rule of database should be security and for that you need to add authentication factors to your database.Your mongodb database should be secured with a password and any data will not be accessible without the password. Now come to the steps 1.Here I am presuming that

Accessing Github/Gitlab via SSH key – part 2

To Copy the SSH key run these two commands sudo apt-get install xclip xclip -sel clip < ~/.ssh/id_rsa.pub If it won’t work for you,then cat ~/.ssh/id_rsa.pub copy it manually Now,open your github account and go to Settings -> SSH ann GPG keys  -> New SSH key Now give a title

Accessing Github/Gitlab via SSH key – part 1

SSH stands for Secure Shell.SSH protocol is a method that securely connects one computer to another, establishes a secure connection between the local system and server with strong encrypted authentication key. Now open the terminal (gitbash/ubuntu in windows) and write this following command : ls ~/.ssh/ If you already have

Always Put the “Root” route at the bottom

This will be a simple and important one.I myself kind of find this small trick very useful. Let me explain it with an example Suppose you have defined your “Routes” like the following <Switch> <Route path="/" component={MainComponent}/> <Route path="/firstpath" component={FirstComponent}/> <Route path="/secondpath" component={SecondComponent}/> </Swith> In this case,React will not render

How to use Next.js with React

Couple of days back I came to know about a framework named “Next.js” which is being used with React app for sever-side rendering.As far it seems very promising and really easy to use.But,first thing first.First question came to my mind is that “What is server-side rendering?How is it differ from

The importance of callback in React setState

The setState function in React which is used to manipulate the state can take a callback. If your state look like this state={ key:value }; and you want to manipulate the state in somewhere in your React component and along with that you are making some api request where you

Why should you choose React for your next project?

Whenever you choose a new framework,the very first question come to your mind is why should i learn it? or how will it be beneficial to you? I will give you the shortest and well explained answer i can come up with. 1.SIMPLE AND EASY LEARNING React is very easy