An open-source File Storage System which is developing with golang
- You should have Docker installed
- You should place a
.env
file containing base64 encoded public-key
Pull the project image:
docker pull mjafari98/go-file:latest
Run the container:
docker run --rm -p 50061:50061 --env-file=.env -it mjafari98/go-file:latest
- You should have Go installed on your system
You can upload files to the server using command bellow:
cd examples/upload
go run main.go /path/to/some/file.ext
You can download files from the server using command bellow:
cd examples/download
go run main.go ID
The ID
should be an integer (1, 2, ...)
The following command will download the file with ID = 1
, from the server
go run main.go 1