An open API service indexing awesome lists of open source software.

https://github.com/happyuky7/basic-webserver-nodejs-v1

Basic WebServer NodeJS V1
https://github.com/happyuky7/basic-webserver-nodejs-v1

javascript js nodejs nodejs-server web webserver website

Last synced: 3 months ago
JSON representation

Basic WebServer NodeJS V1

Awesome Lists containing this project

README

        

# Basic-WebServer-NodeJS-V1

If view in github page using this [Link](https://happy7.xyz/Basic-WebServer-NodeJS-V1/public/), view index.html
If view in github page using this [Link](https://happy7.xyz/Basic-WebServer-NodeJS-V1/public/404.html), view 404.html

### Requirements

This project requires:

- Node.js
- PC or Hosting Server Support Node.js or VPS Server or Dedicated Server or orther Server.

### Installation

Clone the repository:

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

Install npm dependencies

```bash
$ npm install
```

Configure server port in

```js
const port = 3000;
```

replace the port for your server port.

Start the server

```bash
$ npm start
```
OR
```bash
$ node .
```

In your browser using:

```bash
http://localhost:port/
```
default port
```bash
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 open port in `ufw` in ubuntu:
```bash
$ ufw status
$ ufw allow
```

Example:
replace the ip address and port for your hosting
```bash
http://:/
```

Example change ip address and port:
```bash
http://127.0.0.1:3000/
```

---

## Aditional Information

[My website](https://happy7.xyz), My website

[Discord](https://discord.gg/3EebYUyeUX), Support My Server Discord

---

Happyuky7

## Special Thanks

- **Visual Studio Code** [Link](https://code.visualstudio.com/)
![Visual Studio Code Logo](./vscode.png)
- Description: Visual Studio Code is a lightweight and powerful source code editor that provides excellent support for various programming languages, debugging, and version control integration.

Happy coding!