There may come a time when you want to upload a file to an API gateway and send it on to a TCP microservice. This repo shows how to do that.
Note: this repo is meant to accompany a blog post on trilon.io and will not go through everythingstep by step.
$ git clone git@github.com:TrilonIO/file-upload-via-tcp.git
$ cd file-upload-via-tcp
Run the TCP server first, then the API gateway
$ nest start --watch tcp-server
$ nest start --watch tcp-file-sending
$ xh :3000/file file@package.json
Observe the output and profit