Temp File Transfer Web Application
Table of Contents
About The Project
This project aiming to create a simple temporary file trasnfer app for general purposes. With this app you could upload file to service then retrieve from unique key for specific (1 minute) time validity. Demo app is listening on (https://alya-temp-file.herokuapp.com) .
Install latest Golang https://go.dev
Install docker on your OS https://docs.docker.com/get-docker/
Quick look website https://www.heroku.com
- Clone the repo:
git clone https://github.com/AlperRehaYAZGAN/temp-file-transfer-app.git cd temp-file-transfer-app
- Run app directly:
go build -o ./bin/myexeapp ./bin/myexeapp
- Build docker image:
docker build -t alperreha/alya-temp-file:1.0.0
- Run Docker container:
docker run --name alya-temp-file -p 9090:9090 -d alperreha/alya-temp-file:1.0.0
This simple app has a two endpoint to handle whole process. If we assert server is listening on 9090 port, example requests are:
- GET / : HTML form for upload file
- GET /get/:file-id : Returns file by given file-id
- POST /upload-one : Form Data myfile for uploading file and returns file key to access ,
See the open issues for a list of proposed features (and known issues).
- JWT encode,decode and verify
- [-] Custom TCP Transport for microservices
Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated.
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature)
- Commit your Changes (
git commit -m 'Add some AmazingFeature')
- Push to the Branch (
git push origin feature/AmazingFeature)
- Open a Pull Request
Distributed under the MIT License. See
LICENSE for more information.