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
- Host: GitHub
- URL: https://github.com/happyuky7/basic-webserver-nodejs-v1
- Owner: Happyuky7
- Created: 2024-08-27T02:38:08.000Z (9 months ago)
- Default Branch: master
- Last Pushed: 2024-09-15T06:28:17.000Z (9 months ago)
- Last Synced: 2025-01-06T14:20:54.180Z (5 months ago)
- Topics: javascript, js, nodejs, nodejs-server, web, webserver, website
- Language: HTML
- Homepage: http://happy7.xyz/Basic-WebServer-NodeJS-V1/
- Size: 114 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
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/)

- 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!