Lädt...


🔧 Node JS || Epress js || By Munisekhar Udavalapati


Nachrichtenbereich: 🔧 Programmierung
🔗 Quelle: dev.to

Express js

  1. to write simple express js application

npm init
npm install express

const express=require('expreass');
const app=express();
app.use('/',(req,res,next)=>{
    rse.send('succuss');
})

app.listen(3000,()=>{
console.log('port 3000 is success');
});

2.write JWT token authentication.
npm install jsonwebtoken

const jwt=require('jsonwebtoken');

const newToken=jwt.sign({name:'sekhar',userId:'sekhar_32'},process.env.sec_jwt_key,{expiresIn:'5m'});
console.log(newToken);
const jwtVerify=jwt.verify(newToken,process.env.sec_jwt_key);
console.log(jwtVerify);

3.password encryption in node js
npm install bcrypt

const bcrypt=require('bcrypt');
const password='ex_password';
const hashPassword=bcrypt.hash(password);
const verifyPassword=bcrypt.compare(password,hashPassword);
console.log(verifyPassword); //true

4.node js status codes

404===>not found
401===>unauthorised
400===>bad requst
200===>ok
201===>create
202===>accepted

5.http methods

GET
PUT
POST
DELETE

6.clinet filse send

const path=require('path');
app.use('/',(req,req,next)=>{
 res.sendFile(path.join(__dirname,'public','home.html'));
})
...

🔧 Node JS || Epress js || By Munisekhar Udavalapati


📈 105.63 Punkte
🔧 Programmierung

🔧 2. Add Two Numbers || DSA || Javascript || by Munisekhar Udavalapati


📈 60.33 Punkte
🔧 Programmierung

🔧 1. Two Sum || DSA || JavaScript || By Munisekhar Udavalapati


📈 60.33 Punkte
🔧 Programmierung

🔧 SQL || MySQL || By Munisekhar Udavalapati


📈 60.33 Punkte
🔧 Programmierung

🔧 SQL Sequelize || By Munisekhar Udavalapati || MySQL || SQL


📈 60.33 Punkte
🔧 Programmierung

🔧 Dive Into the Wonders of Node.js with "Node.js Notes for Professionals" 🚀


📈 13.92 Punkte
🔧 Programmierung

🎥 How to create a web API with Node.js and Express [17 of 26] | Beginner's Series to Node.js


📈 13.92 Punkte
🎥 Video | Youtube

🕵️ i18n-node-angular up to 1.3.x on Node.js REST API Endpoint denial of service


📈 13.92 Punkte
🕵️ Sicherheitslücken

⚠️ [dos] - Microsoft Internet Explorer 9 MSHTML - CDisp­Node::Insert­Sibling­Node Use-After-Free (MS13-037) (2)


📈 13.92 Punkte
⚠️ PoC

🔧 Replace a Live Mongo Node With a New Node


📈 13.92 Punkte
🔧 Programmierung

🕵️ node-srv on Node.js URL directory traversal


📈 13.92 Punkte
🕵️ Sicherheitslücken

🕵️ node-openssl auf Node.js Environment Variable erweiterte Rechte


📈 13.92 Punkte
🕵️ Sicherheitslücken

🎥 How to create a new Node.js project [6 of 26] | Beginner's Series to Node.js


📈 13.92 Punkte
🎥 Video | Youtube

🕵️ node-tkinter on Node.js Backdoor privilege escalation


📈 13.92 Punkte
🕵️ Sicherheitslücken

⚠️ [dos] - Microsoft Internet Explorer 9 MSHTML - CDisp­Node::Insert­Sibling­Node Use-After-Free (MS13-037) (1)


📈 13.92 Punkte
⚠️ PoC

🔧 Unlock the Power of Node.js Testing with the New Node Test Runner Feature


📈 13.92 Punkte
🔧 Programmierung

🕵️ node-server-forfront on Node.js URL directory traversal


📈 13.92 Punkte
🕵️ Sicherheitslücken

🕵️ node-opensl auf Node.js erweiterte Rechte [CVE-2017-16063]


📈 13.92 Punkte
🕵️ Sicherheitslücken

🔧 Migrating node-fetch/form-data to Node.js native APIs


📈 13.92 Punkte
🔧 Programmierung

🕵️ cue-sdk-node on Node.js Download ZIP File weak encryption


📈 13.92 Punkte
🕵️ Sicherheitslücken

🕵️ node-simple-router on Node.js URL directory traversal


📈 13.92 Punkte
🕵️ Sicherheitslücken

🕵️ mssql-node auf Node.js erweiterte Rechte [CVE-2017-16059]


📈 13.92 Punkte
🕵️ Sicherheitslücken

🎥 How to work with files and directories with Node.js [12 of 26] | Beginner's Series to Node.js


📈 13.92 Punkte
🎥 Video | Youtube

🕵️ mkclean 0.8.9 MKV File corec/corec/node/node.c Node_ValidatePtr denial of service


📈 13.92 Punkte
🕵️ Sicherheitslücken

⚠️ [dos] - Microsoft Internet Explorer 9 MSHTML - CDisp­Node::Insert­Sibling­Node Use-After-Free (MS13-037) (2)


📈 13.92 Punkte
⚠️ PoC

🔧 5 Top Node.js Streams Resources You Should Learn to Level Up Your Node.js Skills 🚀💯


📈 13.92 Punkte
🔧 Programmierung

🕵️ mssql-node on Node.js privilege escalation [CVE-2017-16059]


📈 13.92 Punkte
🕵️ Sicherheitslücken

🕵️ node-sqlite auf Node.js Environment Variable Backdoor erweiterte Rechte


📈 13.92 Punkte
🕵️ Sicherheitslücken

🔧 How to Manage Your Node.js Versions Using the Node Version Manager (NVM)


📈 13.92 Punkte
🔧 Programmierung

🎥 How to manage Node.js vulnerabilities [11 of 26] | Beginner's Series to Node.js


📈 13.92 Punkte
🎥 Video | Youtube

🕵️ mkvalidator 0.5.1 MKV File corec/corec/node/node.c Node_GetData denial of service


📈 13.92 Punkte
🕵️ Sicherheitslücken

⚠️ [dos] - Microsoft Internet Explorer 9 MSHTML - CDisp­Node::Insert­Sibling­Node Use-After-Free (MS13-037) (1)


📈 13.92 Punkte
⚠️ PoC

matomo