https://github.com/yunisdev/yunisdev-easy-proxy
Lightweight cli tool for creating proxy servers
https://github.com/yunisdev/yunisdev-easy-proxy
Last synced: about 1 year ago
JSON representation
Lightweight cli tool for creating proxy servers
- Host: GitHub
- URL: https://github.com/yunisdev/yunisdev-easy-proxy
- Owner: yunisdev
- Created: 2020-08-15T10:37:09.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2020-08-15T11:31:44.000Z (almost 6 years ago)
- Last Synced: 2024-04-26T20:06:43.185Z (about 2 years ago)
- Language: JavaScript
- Size: 825 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Install
```bash
npm i -g yunisdev-easy-proxy
```
or
```bash
sudo npm i -g yunisdev-easy-proxy
```
## Syntax
```bash
easy-proxy --listen=[PORT] --"[ROUTE]"=[APP_PORT]
```
###### PORT
Proxy will run in this port.
default: 9000
###### ROUTE
Route for app to run under.
###### APP_PORT
Port of app running at localhost
## Example
You have two app running on localhost.
First is React app running on localhost:3000 will use "/" route.
Second is Flask app running on localhost:8080 will use "/api" route.
For building proxy to run them on same port (5500) you should run:
```bash
easy-proxy --listen=5500 --"/api"=8080 --"/"=3000
#It is recommended to declare non-root routes first.
```