knight
is a simple static server without configuration on the top of Node.js.
Installation via npm
:
npm install knightjs -g
knight [path] [options]
path
defaults to ./
, your current target directory.
-p
or --port
port to use (defaults to 4000)
Checkout this repository locally, then:
$ npm i [OR IF YOU USE YARN] yarn
$ node bin/knight
Now you can visit http://localhost:4000
to view your server.