Basic cURL working for POST. Run with: $ PORT=5000 curl --request POST -d name=someradname http://localhost:5000/foo -v 1. sets env var POST to port 5000; 2. Source code grabs env var by name and parameterizes application using that env var; 3. This application parameterization allows for clustering and load balancing (clustering is generally accomplished by a load balancer sitting in front of several application instances; the load balancer acts as a "multiplexer" or "distributor" of incoming requests so as not to overwhelm a single instance).
Basic cURL working for POST. Run with:
$ PORT=5000 curl --request POST -d name=someradname http://localhost:5000/foo -v
1. sets env var POST to port 5000;
2. Source code grabs env var by name and parameterizes application using that env var;
3. This application parameterization allows for clustering and load balancing
(clustering is generally accomplished by a load balancer sitting in front of several
application instances; the load balancer acts as a "multiplexer" or "distributor" of
incoming requests so as not to overwhelm a single instance).

TO DO: echo body of message to console.log, with body-parser and similar node middleware.

abstractmachines/mean-stack-js-express-node-full-stack,abstractmachines/mean-stack-js-express-node-full-stack