Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to run multple port node

var express = require('express');

let app1 = express();
let app2 = express();

app1.listen(3000, () => {
  console.log("Started server on 3000");
});

app2.listen(3002, () => {
  console.log("Started server on 3002");   
});
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #run #multple #port #node
ADD COMMENT
Topic
Name
1+1 =