Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

express server template

const express = require("express");
const app = express();
const port = 5000;

app.use(express.json());

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

app.listen(port, () => {
  console.log(`Server running on http://localhost:${port}`);
});
Comment

express start template

const express = require('express');
const app = express();
const cors = require('cors');
const port = 4000;
app.use(cors());
app.use(express.json());

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

app.listen(port, () => {
  console.log(`Server running on http://localhost:${port}`);
});
Comment

PREVIOUS NEXT
Code Example
Javascript :: select element by data 
Javascript :: javascript number pyramid 
Javascript :: number to binary javascript 
Javascript :: web3.js get balance 
Javascript :: javascript to help find overflow elements 
Javascript :: get last in array javascript 
Javascript :: how to check whether a string contains a substring in typescript online 
Javascript :: how to change h1 color in javascript 
Javascript :: vue watch immediate 
Javascript :: javascript change element id 
Javascript :: getkey by value js 
Javascript :: file input change event not firing angular 
Javascript :: url decode in javascript 
Javascript :: get all classes of element jquery 
Javascript :: is react case sensitive 
Javascript :: file extension regex javascript 
Javascript :: how to find length of array js 
Javascript :: javascript add button to div 
Javascript :: javascript template strings 
Javascript :: iterate formData 
Javascript :: foreach loop in jquery 
Javascript :: array remove empty entrys js 
Javascript :: js wait 
Javascript :: how to delete node_modules file 
Javascript :: js skip to next iteration 
Javascript :: javascript game loop 
Javascript :: refresh page javascript 
Javascript :: how to hide url parameters in address bar using javascript 
Javascript :: mui how to set background in theme 
Javascript :: flatlist react native 
ADD CONTENT
Topic
Content
Source link
Name
2+6 =