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
Express GraphQL Server
Mutation : Mutation allows you to do is to create actions on your graphql server . From the Main query type there is also another
Apollo GraphQL Intro
What is GraphQL? GraphQL is an open source query and data manipulation language for APIs. It was developed with the goal of providing single endpoints
GraphQL – Intro
What is GraphQL (& why should you use it)? GraphQL is an API syntax that defines how to fetch data from one or many databases.
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’;
React Redux – Multiple Reducer
We can have multiple reducer and combine them through rootReducer : 1. Create a store 2. Give a rootReducer to Store 3. rootReducer has two
React Redux – Intro Reducer
Step 1 : Install dependency ” npm install –save redux ” import React from “react”; import { createStore } from “redux” import { Provider }
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