MongoDb Cheat Sheet

MongoDB Cheat Sheet Show All Databases show dbs Show Current Database db Create Or Switch Database use acme Drop db.dropDatabase() Create Collection db.createCollection(‘posts’) Show Collections

Nodejs Command

Nodejs Kill Command Stop all instances of node.js server taskkill /f /im node.exe To Check Nodejs Outdated package versions npm outdated 2. Use npm install

Building Form Without Formik

index.js import React, { useState } from ‘react’; import { render } from ‘react-dom’; import ‘./style.css’; const emailRegex = /(?:[a-z0-9!#$%&*+/=?^_{|}~-]+(?:\.[a-z0-9!#$%&’*+/=?^_`{|}~-]+)*|”(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21\x23-\x5b\x5d-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])*”)@(?:(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?|\[(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?|[a-z0-9-]*[a-z0-9]:(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21-\x5a\x53-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])+)\])/; let App = () =>

React Redux – Connect

How to use Redux with React ? 1. npm install –save react-redux store.js import * as redux from ‘redux’; //Actions export const COUNTER_INCREMENT = ‘counter/increment’;

Advanced Nodejs

This course is completely about the Node. js runtime itself and absolutely not about the popular NPM packages that are usually presented in courses about