HTTP server for development - serve several specified directories simulataniously
go get github.com/Alexendoo/Serve
USAGE:
serve [OPTION]... [DIR]...
OPTIONS:
--host -- bind to host (default: localhost)
-i, --index -- serve all paths to index if file not found
--no-list -- disable directory listings
-p, --port -- bind to port (default: 8080)
-v, --verbose -- display requests and responses
Serve files from the current directory
serve
Utilise npm packages without having to type ../node_modules
serve client node_modules
client/
index.html
node_modules/
whatwg-fetch/
fetch.js
<!-- in client/index.html -->
<script src="whatwg-fetch/fetch.js">
Use a specified file for any non matching requests, for instance for HTML5 routing
serve -i index.html