Node.js is required to run this sample locally code example
Example 1: run node app locally
// Run this command in your terminal to start your node application.
// Replace the tag with your applications main file name (ex index.js, main.js etc).
// Add alternative a relative or absolute path before the name.
node <filename>.js
Example 2: create express server local
// create directory
//npm init -y
//npm i express --save
//create public directory
//create server.js
// <---- In the server js file --->
'use strict';
const express = require('express');
const app = express();
app.use(express.static('public'));// to connect with frontend html
app.use(express.json());//body parse
app.get('/', function(req,res){
res.send('This is the Homepage');
//res.sendFile('index.html');
});
app.listen(3000);