This report contains the boilerplate to use NodeJS as a proxy service. Note that on linux systems, you cannot bind to ports less than 1024 unless you use sudo or allow node to access these reserved ports.
To give node access to reserved ports without using sudo, using the following commands:
which node
This should provide the location of the node binary.
sudo setcap 'cap_net_bind_service=+ep' [node path]
To learn more, you can read the explanation here: