Mocking a http post server with node.js

Sometimes we need to contact remote servers and send him some data. It is hard to test the whole feature if the remote server does not offer you a sandbox environment. An easy way to do it is creating a mock http server and for me, the easiest way of doing it is with node.js Install node.js Node.js offers a great page for downloading it, I prefer to use it the package manager options. For macOS, I use brew: ...

January 6, 2021 · 2 min · Tomás Dias Almeida