Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

express hello world

//to run : node filename.js
const express = require('express')
const app = express()
const port = 3000

app.get('/', (req, res) => res.send('Hello World!'))

app.listen(port, () => console.log(`Example app listening at http://localhost:${port}`))

//visit localhost:3000
// assuming you have done 1) npm init 2) npm install express
Comment

PREVIOUS NEXT
Code Example
Javascript :: jquery add br in text 
Javascript :: node powershell 
Javascript :: nextjs framer motion 
Javascript :: react native asign width to image 
Javascript :: circular queue implementation using js 
Javascript :: how to change package name in react native 
Javascript :: javascript remove object element 
Javascript :: tostring js 
Javascript :: js sleep 1 sec 
Javascript :: usestate wait for set 
Javascript :: javascript on enter key searchbox 
Javascript :: express return svg 
Javascript :: string.fromcharcode 
Javascript :: js for of 
Javascript :: javascript add text to textarea overwrite 
Javascript :: array pop 
Javascript :: propertyName nuxt auth 
Javascript :: jquery find input and select 
Javascript :: how to get data form 
Javascript :: how to change input value in javascript using class 
Javascript :: npm hook form 
Javascript :: javascript unicode to string 
Javascript :: get location from brwoser react 
Javascript :: canvas tag html 
Javascript :: appendchild on specific position 
Javascript :: Mongoose and multiple database in single node.js project 
Javascript :: how to redirect a form to another page when we submitted a form in react js 
Javascript :: delete from array javascript 
Javascript :: javascript create form element 
Javascript :: javascript last in a list 
ADD CONTENT
Topic
Content
Source link
Name
9+5 =