go-file-hosting

command module
v0.0.0-...-09a018b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 19, 2024 License: MIT Imports: 7 Imported by: 0

README

Go File Hosting

This open source project is a straightforward microservice designed for file download or upload operations, accessible via a web server. Built using Go, it facilitates deployment through Docker for seamless execution.

The microservice functions through two primary routes accessed via POST requests. Users can either specify a file URL for downloading or directly upload a file to the server. Once processed, the files become accessible within a built-in mini file hosting environment within the application, accessible via unique URLs.

For more comprehensive understanding and setup, the project includes a Makefile with essential commands for execution. Additionally, it provides examples demonstrating usage scenarios, including practical curl commands for quick integration and testing.

How to use

Run the application:

make run

Start the application:

make start

Stop the application:

make stop

Example of how to upload a file:

(replace FILE with the file to sent/upload.)

make test-file file=FILE

Example of how to download a file:

(replace URL with url file to download.)

make test-url url=URL

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL