SERVER 1. package.json { “name”: “mernapp”, “version”: “1.0.0”, “description”: “”, “main”: “server.js”, “scripts”: { “test”: “echo \”Error: no test specified\” && exit 1″, “build”: “cd
Category: Nodejs
Stripe – Part I
1. Register a User : User email, id , password, and type will be saved in application db 2. User will be redirected to login
Node Versioning
Package Versioning : QA 1 : What’s the difference between tilde(~) and caret(^) in package.json ? After I upgraded to latest stable node and npm,
RESTful CRUD APIs using Node.js Base Structure
RESTful CRUD APIs using Node.js Base Structure Mongoose is an Object Data Modeling (ODM) library for MongoDB and Node.js. It manages relationships between data, provides
JWT
1. install –save jsonwebtoken 2. import {sign} from ‘jsonwebtoken’ 3. login ()=> { const user = await User.findOne(email:email); const valid = await bcrypt.compare(password, user.password) const
TimeZone
World Time Zones Map Time Calculation : one day = 24 hours 24 Parts; Circle has 360 degree 360/24 = 15 degree Each part has
React URLs
AWS Lambda : Schedule Using Eventbridge Rule AWS Lambda Cron Jobs https://hevodata.com/learn/aws-lambda-cron/#What-are-Cron-Jobs Automate Sending Emails at a Specific Time with AWS Lambda, CloudWatch and SES
Nodejs Utility
1. To Kill Nodejs Ports : taskkill /f /im node.exe 2. Visual Studio Chrome Debugger : VS Code – Debugger for Chrome 3. Nodejs Debugging
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
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