Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

create node js server

import express from 'express';
const server = express();

const port = 8080;

server.get('/', (req, res) => {
  return res.send('Hello, Express.js!');
})

server.listen(port, () => {
  console.log(`Server is running on port ${port}`);
});
Source by learn.coderslang.com #
 
PREVIOUS NEXT
Tagged: #create #node #js #server
ADD COMMENT
Topic
Name
6+1 =