1.0.4 • Published 6 years ago
plain-server v1.0.4
plain-server
Serve Directories over HTTP at your favourite Port.
Installation
From Command Line:
npm install plain-server
Usage
Make a file "server.js".
Write below code in the file.
const plainServer = require('plain-server'); // serves 'build' directory at 6000 port plainServer('build', 6000); ...If port is not specified, then 1123 will be used as default port.
Run below command in the command line.
node server.js
Now go to chrome and type url -