Author: smartcoder

Use React Variables inside HTML

Using react js code inside html code. Print HTML data dynamically from react js variables. Printing name variable inside HTML code using: {name} React... Read more »

Basic React JS App – Sample Code

React is one of the most popular front-end JS framework. Here is a sample react app code for beginners. index.js import React from "react";... Read more »

Cookies and Sessions in Node Express JS, Mongo DB APP

Sessions and cookies play a very important role in a web app. These are used to store information. Cookies are used to store information... Read more »

bcrypt – Password Hashing for Package for Node Apps

bcrypt is a node library that enables password hashing. So we ca securely store the password of our Node Express Mongo Apps. Install bcrypt... Read more »

nvm – To Switch Node Versions – Upgrade or Downgrade Node

nvm refers to the Node Version Manager. It helps to manage the Node versions, we can switch between different node versions with ease. Using... Read more »

md5 Password hashing in Node Mongo APp

md5 is a javascript function for hashing messages, passwords with MD5. Passwords are saved securely in the mongo db database by hashing the user... Read more »

dotenv package – Environment Variables in Node JS App

Environment variables are used to keep the secret keys safe. While creating a Node JS app, we may need many keys/ passwords and other... Read more »

First Git Push – Upload New Project to GitHub

Create Repository in Github.com In the local git project folder perform the following git commands, git init git add . git commit -m "inital... Read more »

Data Encryption in Express Mongo DB App

For the encryption and authentication for mongoose documents, we can use a package called mongoose-encryption. Refer: https://www.npmjs.com/package/mongoose-encryption Install mongoose-encryption package npm i mongoose-encryption Using mongoose-encrytption... Read more »