Basic-WebServer-NodeJS-V1

If view in github page using this Link, view index.html If view in github page using this Link, view 404.html

Requirements

This project requires:

Installation

Clone the repository:

$ git clone https://github.com/Happyuky7/Basic-WebServer-NodeJS-V1.git

Install npm dependencies

$ npm install

Configure server port in

const port = 3000;

replace the port for your server port.

Start the server

$ npm start

OR

$ node .

In your browser using:

http://localhost:port/

default port

http://localhost:3000/

If using hosting or vps or dedicated, using your hosting ip address. Note: if using vps or dedicated you need to configure the firewall open port using server.

Example: replace the ip address and port for your hosting

http://<ip-here>:<port-here>/

Example change ip address and port:

http://127.0.0.1:3000/

Aditional Information

My website, My website

Discord, Support My Server Discord


Happyuky7

Special Thanks

Happy coding!