niki4810 / node-proxy

A simple proxy server in node with logging and cli
0 stars 0 forks source link

node-proxy

A simple proxy server in node with logging and cli

Getting started

Starting your server

From the root directory of your project

1) Using babel

    $ babel-node index.js

alt tag

2) using nodemon

   $ nodemon --exec babel-node -- index.js

alt tag

3) using npm start

  $ npm start 

alt tag

Features

Echo Service

alt tag

Basic proxy

Passing x-destination-url in header

CLI

Passing url option

Logging

Basic logging

Logging to a file

Extra

1) Utilized chalk (https://www.npmjs.com/package/chalk) to add colors to log statements alt tag

2) Adding documentation flags Temperoraly code checked into this branch chore-adding-documentation-to-args alt tag