With this simple package, you can create your own static server simply by Nodejs. Vietnamese version: http://blog.duyet.net/2015/08/tao-server-static-don-gian-bang-nodejs.html
$ npm install static-html-server -g
I created a project directory structure is as follows:
With path is: ~/project/test-static-server
I started server by using:
$ static-html-server -p 8888 -r ~/project/test-static-server
- -p 8888 is the port of static server, by default is 7788.
- -r ~/project/test-static-server is the path to root folder project, default is current folder location.
Open your browser and enter to location: http://localhost:8888
Github repo: https://github.com/duyetdev/static-html-server