Requires Node.js, Express.js, and Inquirer
web-server is a JavaScript web server to host (HTML) files on a local host port using Express.js and Inquirer.
To install Node.js, Express.js and Inquirer:
- Node.js > Download it from the website
- Express.js >
npm install express
- Inquirer >
npm install --save inquirer@^8.0.0
To use web-server first you must install it on your system. There are two methods:
This installation method requires Git
git clone https://github.com/myferr/web-server
After that run server.js
or
Click the "Code" button.
After that click "Download ZIP", then extract the .zip
and run server.js
To run server.js
you can say:
npm start
or:
node .