Skip to content

TrilonIO/file-upload-via-tcp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

7623bc2 · Mar 24, 2023

History

4 Commits
Mar 24, 2023
Mar 24, 2023
Mar 24, 2023
Mar 24, 2023
Mar 24, 2023
Mar 24, 2023
Mar 24, 2023
Mar 24, 2023
Mar 24, 2023
Mar 24, 2023

Repository files navigation

File Upload via TCP

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.

Clone the project and move to the directory

$ git clone [email protected]:TrilonIO/file-upload-via-tcp.git
$ cd file-upload-via-tcp

Running the servers

Run the TCP server first, then the API gateway

$ nest start --watch tcp-server
$ nest start --watch tcp-file-sending

Send a file via HTTP

$ xh :3000/file [email protected]

Observe the output and profit

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published