Skip to content

mukundgoel/node-proxy-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 

Repository files navigation

node-proxy-server

A proxy server developed using Node.JS

####Overview: The proxy server will open up 2 ports on your machine: port 8000 and port 8001.

Port 8000: Echo Server on this port will simple echo our requests back to caller

Port 8001: Proxy Server that will route the request to the intended destination and will return response back to the caller

Usage: bode index.js <command> [options]

Options:
  -h, --help  Show help                                                         
  --host      Proxy to a remote machine                   [default: "127.0.0.1"]
  --port      Remote machine port                                               
  --url       Remote machine URL                                                
  --log       Name of logfile to write logs to                                  

Examples:
  bode index.js --host www.google.com                                           
  bode index.js --url http://google.com                                         
  bode index.js --log /tmp/proxy.log                                            

Thanks to CodePath and @WalmartLabs for Node.JS!

####Codepath Task List:

  • Can you successfully echo requests made to the echo server?
  • Can you successfully proxy requests made to the proxy server?
  • Did you include a CLI as described above?
  • Does your app log request to stdout or save it properly to a file when the log argument is given?
  • Did you successfully push your code to github? Can you see the code on github?

codepath_new.gif note: dev.walmart.com is the same as localhost(127.0.0.1) since calling 127.0.0.1 directly is somehow blocked

Optional Features:

  • Documentation, -h
  • Tweak the log styling, play with colors, spacing and additional data

help.gif

About

A proxy server developed using Node.JS

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published