node-http-server
Version:
A very simple and fast http server for node, bash, and spawnable from C, Python etc. It is lightweight and great for embedded solutions as well as everyday development or public facing apps.
16 lines (13 loc) • 340 B
JavaScript
//import the `node-http-server` module
//` const server=require(‘node-http-server’); `
const server=require('../../server/Server.js');
//checkout the server in the console
console.log(server);
//start the server with a config
server.deploy(
{
verbose: true,
port: 8000,
root:__dirname+'/appRoot/'
}
);