https://github.com/trilonio/file-upload-via-tcp
https://github.com/trilonio/file-upload-via-tcp
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/trilonio/file-upload-via-tcp
- Owner: TrilonIO
- Created: 2023-03-24T01:18:14.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-03-24T16:36:52.000Z (almost 3 years ago)
- Last Synced: 2025-01-24T20:41:28.396Z (about 1 year ago)
- Language: TypeScript
- Size: 73.2 KB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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
```bash
$ git clone git@github.com:TrilonIO/file-upload-via-tcp.git
$ cd file-upload-via-tcp
```
## Running the servers
Run the TCP server first, then the API gateway
```bash
$ nest start --watch tcp-server
```
```bash
$ nest start --watch tcp-file-sending
```
## Send a file via HTTP
```bash
$ xh :3000/file file@package.json
```
Observe the output and profit