Git Product home page Git Product logo

node-proxy-server's Introduction

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.