Simple temporary file upload and transfer web application coding with Go language.
Explore the Golang »
Live Demo at https://tempft.herokuapp.com
Table of Contents
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) .
- Golang
Install latest Golang https://go.dev
- Docker
Install docker on your OS https://docs.docker.com/get-docker/
- Heroku
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 Home Page for upload file
- GET /f/:file-key : Returns file info page by file-uploaded-temp-key
- GET /api/:key/:filename : api get file by key
- POST /api/:filename : 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.
Alper Reha YAZGAN - @alperreha - [email protected]
Project Link: https://github.com/AlperRehaYAZGAN/temp-file-transfer-app