Git Product home page Git Product logo

tus-spring-boot's Introduction

TusSpringBoot

A File Upload service built on Spring Boot and React-Redux, implementing the TUS Protocol.

REQUIREMENTS

  • docker (if you want it to run as a container)
  • nodejs and NPM (if you don't have docker)
  • JDK 8
  • maven

USAGE

The client can be found here (though the init.sh script should take care of that for you).

Clone this repo.

This application is initialized using the ./init.sh script. Run ./init.sh --help to see the available options.

Whether containerized or on the host OS, the application will be available on localhost:8080. Upload a file, then close your browser (or even restart your machine!) before it hits 100%. When you try to upload the same file, the upload process will pick up where it left off.

NOTE: If you're behind a corporate firewall, set the HTTP_PROXY and HTTP_PROXY_PORT environment variables

CURRENT FEATURES

  • Chunk-based upload.
  • Toggle between single stream and chunked uploads.
  • Progress table.
  • Fault-tolerant; can resume upload even after restarting your machine.
  • Containerization.

TODOs

  • Checksum for data integrity
  • Scheduled file cleanup
  • Authentication
  • Persisting historical data about uploads
  • Deployment
  • Docker integration.
  • Unit Tests.
  • Refactor most logic into a singleton.

tus-spring-boot's People

Contributors

cjvirtucio87 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

tus-spring-boot's Issues

storage

Need to factor out storage, so as not to tie the application down to the local filesystem.

refactoring

Lots of opportunity for cleanup and refactoring. For instance, this try-catch-rethrow pattern in multiple locations should go away (let the entrypoint deal with the exceptions).

integration-testing

The project needs an integration test, driving the web layer and seeing whether all the components behave when interacting together.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.