Vineet Mishra

kubectl apply -f my-manifest.yaml            # create resource(s)kubectl delete -f my-manifest.yaml           # delete resource(s)kubectl get pods                  # List all pods in the namespacekubectl edit pods/<pod-name>    # Edit Podskubectl describe svc/<service-name>  # Describe a Serviceskubectl logs <pod-name>                              # logs from podkubectl port-forward svc/my-service 5000:my-service-port  # Forward Service target port to local port 5000kubectl create deployment my-dep --image=nginx  # Create Deploymentkubectl get pods -o wide                               # List all pods in ps output format with more informationkubectl get pods --all-namespaces            # List all pods in all namespaceskubectl get svc                 # List all services in the namespacekubectl get nodes                                                            # Get list Nodes in clusterkubectl get ns                                                                    # List Namespace# All kubectl Commandshttps://kubernetes.io/docs/reference/generated/kubectl/kubectl-commands# Cheatsheethttps://kubernetes.io/docs/reference/kubectl/cheatsheet/

--

--

docker ps -> Ps means process state and it shows current containersdocker run -> create and start the containerdocker create -> create containerdocker exec -> to run   commnads in container for once EX: command   docker exec -it <container name> /bin/bashdocker stop  [container ID] ->  terminate the   container and save it's state by commit itdocker rm [container ID]-> remove containerdocker inspect [container ID] -> Get more info   about running containerdocker images ->  list the   imagesdocker push ->    push your image to docker repodocker pull ->    download an   image from docker repodocker commit -> create an image from containerdocker rmi -> remove imagedocker volume -> create a docker volumedocker network -> create a docker networkdocker build -> build a new image from dockerfiledocker login -> Login to docker account

--

--

Hi folks, I will talk about how to add a timeline in react js

first, install the

npm i react-chrono

Once you have done the installation you have to import

import { Chrono } from “react-chrono”;

Create an object

const items = [{
title: “Feb 2022 — Present”,
cardTitle: “Software Engineer”,
cardSubtitle:company2,
cardDetailedText…

--

--

In this blog, I will discuss the creation of end-to-end product

React:
State Management
Lifecycle Methods
Import Components
props
Data transfer from one component to another component (Use Redux/useContext/Prop Drilling)
API Calling and maping the data
Array functions (map, filter, reduce)

MongoDB:
Use Mongoose: Mongoose is a MongoDB object modeling tool designed to work in an asynchronous environment.
Mongoose supports both promises and callbacks
MongoDb (for Online):https://www.mongodb.com/atlas/database

Express Js:
for the Creation of api

Node Js
To create a backend server

--

--

Q1. Guess Output?

let g=0
let arr=[1,2,3,4]
g=arr.push(5)
console.log(g)

Take a breath, Don’t jump into solution

Ouput:5

Reason: Assigned variable will be counting the length of the “arr” variable

Q2. Guess the output:

console.log(1 + “2” + “2”); 
console.log(1 + +”2" + “2”);
console.log(1 + -”1" + “2”);
console.log(+”1" + “1” + “2”);
console.log( “A” — “B” + “2”);
console.log( “A” — “B” + 2);

Take a breath, Don’t jump into solution

Output:
“122”
“32”
“02”
“112”
“NaN2”
NaN

--

--

Q1. Guess the output?

var age = 21;
var myAge = function () {
console.log(age);
var age = 20;
};
myAge ();

Wait Think Hard, Don’t Jump into a solution

Ouput: undefined

Reason: the reason is that when the function is executed, it checks that there’s a local age variable present but doesn’t yet declare it so that it won’t look for a global one

Q2. Guess the output?

var getValue= [undefined];
getValue[2] = 1;
console.log(getValue);
console.log(getValue.map(e => 7));

Wait Think Hard, Don’t Jump into a solution

Output:[ undefined, <1 empty item>, 1 ]
[ 7, <1 empty item>, 7 ]

Reason: It will not crash. The JavaScript engine will make empty array slots if there is no value

--

--

Hi All, I was sitting one day and wondering one day which would be more suitable to write your business logic in code or database let's see the pros & cons

Database

Pros:

If you need to change the language, almost all logic will be in the database; therefore, the implementation time will be minimal.

Changes in the language are more common than in the database.

Cons:

You can’t debug in database

Direct involvement of the database is not a good practice

Code:

Pros:

You can debug the code

scalability

Provide one more layer to the database

Cons:

You need to change whole code if you taking new Tech stack

--

--

Vineet Mishra

Vineet Mishra

Full Stack Developer at CCR Tech, I write about Mobile/Web Development and Deployment, and Interview Q & A