Skip to content

A simple Flask-based file downloader web application with Docker support, featuring a user-friendly interface to browse, download, and manage files via API endpoints.

License

Notifications You must be signed in to change notification settings

SOLARIS-bit/flask-file-downloader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Flask File Downloader

GitHub repo size Docker Image Size GitHub last commit GitHub issues GitHub license

Une application web simple qui permet de :

  • Naviguer dans un répertoire de fichiers
  • Rechercher un fichier
  • Télécharger un fichier
  • Téléverser un fichier
  • Consommer une API REST avec JavaScript
  • Lancer l'application via Docker

🌐 Interface utilisateur

L'application permet d'afficher tous les fichiers présents dans le dossier data avec leur taille et date de modification. Elle permet aussi de :

  • Télécharger chaque fichier
  • Uploader un nouveau fichier
  • Rechercher dynamiquement un fichier (JavaScript)

🔧 Endpoints API

Méthode Endpoint Description
GET /api/files Retourne la liste des fichiers
GET /api/download/<filename> Télécharge un fichier
POST /api/upload Upload un fichier

🚀 Démarrage rapide avec Docker

docker build -t flask-file-downloader .
docker run -d -p 5000:5000 flask-file-downloader
  • Accès via http://localhost:5000

🧪 Tests unitaires avec :

pytest

📁 Structure

flask-file-downloader/ ├── app.py ├── data/ ├── templates/ ├── static/ ├── test_app.py ├── Dockerfile ├── requirements.txt └── README.md

🐳 Technologies

  1. Python 3.11
  2. Flask
  3. Docker
  4. HTML + Bootstrap
  5. JavaScript

🤝 Auteur

SOLARIS-bit

Projet Flask personnel — Docker + API + Interface web simple

About

A simple Flask-based file downloader web application with Docker support, featuring a user-friendly interface to browse, download, and manage files via API endpoints.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published