Skip to content

armonkolaei/nodejs_proxy_server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

3 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿš€ Setup Instructions for Local Web Server

This guide explains how to set up a Node.js server on an AWS Lightsail instance.


๐Ÿ“ Step 1: Copy Project Files

Move your project files to the appropriate directory (e.g., htdocs):

cp -r your-project /path/to/htdocs
cd /path/to/htdocs

๐Ÿ“ฆ Step 2: Install Dependencies

Install the required packages:

sudo npm install
sudo npm install http-proxy-middleware@2.0.7

๐Ÿ” Step 3: Install and Use forever

Install forever globally to keep your server running in the background:

sudo npm install -g forever

๐Ÿ’ก Note: If you are using forever programmatically, also install forever-monitor:

npm install forever-monitor

โ–ถ๏ธ Step 4: Start the Server

Navigate to your project directory and run the server:

cd /path/to/your/project
sudo forever start server.js

About

A simple Nodejs Proxy Server

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors