Skip to content
This repository has been archived by the owner on Feb 19, 2022. It is now read-only.

tumainimosha/nestjs-resumable-upload-demo

Repository files navigation

NestJs Tus Server Example

Motivation

I wrote this demo code while researching use of Resumable upload implementation for NestJS, as a way for myself to tinker with different implementation before I include in production code, and also to provide me with quick reference in the future.

Description

An example implementation of TUS file server in NestJS framework.

Installation

$ npm install

Initialize env file.

$ cp .env.example .env

By default this uses the local file store option, but can also store to S3. Need to provide AWS config in .env for this to work.

Running the app

# development
$ npm run start

# watch mode
$ npm run start:dev

# production mode
$ npm run start:prod

Open browser to access demo frontend at URL below

http://127.0.0.1:3000/index.html

Frontend using Uppy uploader

screenshot-01

Uploading...

screenshot-02

Bookmarks

Below are some material I found helpful when researching use of Tus Protocol for resumable uploads in NodeJS