Skip to main content
edited body
Source Link
Samba
  • 181
  • 2
  • 4

First install node-static server via npm install node-static -g where -g -g is to install it global on your system.

Then navigate, then navigate to the directory where your files are located, start the server with static

It it listens on port 8080, navigatenaviaget to the browser and type localhost:8080/yourhtmlfilenamelocalhost:8080/yourhtmlfilename.

First install node-static server via npm install node-static -g where -g is to install it global on your system.

Then navigate to the directory where your files are located, start the server with static

It listens on port 8080, navigate to the browser and type localhost:8080/yourhtmlfilename.

First install node-static server via npm install node-static -g -g is to install it global on your system, then navigate to the directory where your files are located, start the server with static it listens on port 8080, naviaget to the browser and type localhost:8080/yourhtmlfilename.

Improved spelling and code formatting
Source Link
Tristan
  • 3.3k
  • 8
  • 25
  • 27

firstFirst install node-static server via npm install node-static -g -g where -g is to install it global on your system, then navigate.

Then navigate to the directory where your files are located, start the server with static it

It listens on port 8080, naviagetnavigate to the browser and type localhost:8080/yourhtmlfilenamelocalhost:8080/yourhtmlfilename.

first install node-static server via npm install node-static -g -g is to install it global on your system, then navigate to the directory where your files are located, start the server with static it listens on port 8080, naviaget to the browser and type localhost:8080/yourhtmlfilename.

First install node-static server via npm install node-static -g where -g is to install it global on your system.

Then navigate to the directory where your files are located, start the server with static

It listens on port 8080, navigate to the browser and type localhost:8080/yourhtmlfilename.

Source Link
Samba
  • 181
  • 2
  • 4

first install node-static server via npm install node-static -g -g is to install it global on your system, then navigate to the directory where your files are located, start the server with static it listens on port 8080, naviaget to the browser and type localhost:8080/yourhtmlfilename.