Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

npm express

$ npm install express
Comment

npm express

// npm install express
const express = require('express');
const app = express();

app.get('/', (req, res)=> {
  res.send('Hello World');
}) 

app.listen(3000,()=>{
 console.log("starting...");
});
Comment

express js npm

const express = require('express');
const app = express();

app.get('/', (req, res)=> {
  res.send('Hello World');
}) 

app.listen(3000,()=>{
 console.log("starting...");
});
Comment

npm install express

npm install --save express mongoose ejs dotenv
Comment

express npm package

ejs => template engine
express-ejs-layout => for layout ejs template
express-session => create the session
express-flash => for flash message
connect-mongodb-session => save the session in the mongoDB        
Comment

PREVIOUS NEXT
Code Example
Javascript :: react js marked import and use 
Javascript :: countdown in react js 
Javascript :: jquery when iframe is loaded 
Javascript :: regex optional whitespace characters 
Javascript :: json data sample 
Javascript :: javascript long integer 
Javascript :: foreach db mongodb 
Javascript :: how to check value is array or not in javascript 
Javascript :: jquery hover event 
Javascript :: expo custom fonts 
Javascript :: worker timeout 
Javascript :: event.preventdefault is not a function jquery 
Javascript :: document.on chenage jquer 
Javascript :: jquery change tabs 
Javascript :: download file from api vue 
Javascript :: how to get a toggle button to do different js functions 
Javascript :: fix footer 
Javascript :: array to object 
Javascript :: inheritance in es6 
Javascript :: jquery change title of page 
Javascript :: convert mongodb timestamp to date javascript 
Javascript :: react-native razorpay 
Javascript :: save canvas as image from website 
Javascript :: node module es6 
Javascript :: javascript bigint 
Javascript :: supertest multipart/form-data 
Javascript :: change port react app 
Javascript :: offsetheight javascript 
Javascript :: javascript trigger event 
Javascript :: get data attribute javascript 
ADD CONTENT
Topic
Content
Source link
Name
5+4 =