Temp File Transfer Web Application
Simple temporary file upload and transfer web application coding with Go language.
Explore the Golang »
Live Demo
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) .
Built With
Getting Started
Prerequisites
- 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
Installation
- 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
Usage
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 ,
Roadmap
See the open issues for a list of proposed features (and known issues).
TODO
- JWT encode,decode and verify
- [-] Custom TCP Transport for microservices
- [-]
Contributing
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
License
Distributed under the MIT License. See LICENSE
for more information.
Contact
Alper Reha YAZGAN - @alperreha - [email protected]
Project Link: https://github.com/AlperRehaYAZGAN/temp-file-transfer-app