A SimpleHTTPServer module for Nodejs, wrapping express
and express-http-proxy
.
npm install --save-dev jimple-http-server
Use Nodejs API as below:
const server = require('jimple-http-server');
let myServer = server([
{
to: 'dist/page'
},
{
from: '/resource',
to: 'dist/static'
},
{
from: '/ajax',
to: 'domain.com'
}
], 3000);