Simple web server for html developer
Web server for html developer under node.js.
Installation
$ npm install html-server
Usage
- Firstly you should make some configuration in file server.conf.json:
- Then run command:
node server.js
Your server will be available at http://localhost:<port>
.
Features
- HTML pages routing. You can set diffent rules for routing;
- GET parameters parser. You can use these parameters:
time
— emulates server delay. It useful for preloaders and ajax queries. Example:http://localhost:3128?time=1000
emulates one second delay.