Simple web server for development purpose.
-
Install Node.js.
-
Download this project as zip and unzip to your preferred location.
-
In the project folder, install package and dependencies:
npm install
-
Copy your web site pages to
/public
folder. -
Run:
npm start
-
Visit http://localhost:8008 on your Web browser.
The file config.json
contains the web server configuration.
{
"server": {
"port": 8008,
"location": "public"
}
}
This section includes the web server configuration:
- port: HTTP port used by the HTTP server
- location: relative path to the folder containing the files that the HTTP server should serve