Skip to content

Gazerbim/Python-Cloud

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Flask Cloud Storage App

Overview

This Flask application provides a cloud storage system where users can upload, manage, and download their files. It also includes user management with authentication and authorization, using Flask-Login and SQLAlchemy.

Features

  • User Registration & Login: Users can register, log in, and reset passwords.
  • File Management: Upload, download, edit, and delete files.
  • Storage Quota: Users have a configurable storage quota.
  • Admin User Management: Admins can view and update user quotas.
  • Email Notifications: Notifications and password reset links are sent via email.

Installation

  1. Clone the repository:

    git clone https://github.com/gazerbim/Python-Cloud
    cd Python-Cloud
  2. Install dependencies:

    pip install -r requirements.txt
  3. Set up environment:

    • Ensure you have a valid SMTP server for sending emails.
    • Configure your email and admin credentials inside the beginningapp.py.
  4. Run the application:

    • Use the start.bat file.
  5. Access the application:

    • Go to http://127.0.0.1:15000 in your browser.

File Structure

.
├── app.py               # Main Flask application
├── instance/db.sqlite            # SQLite database
├── templates/           # HTML templates
├── uploads/             # Folder for user uploads
├── server.log           # Log file for server activity
├── requirements.txt     # Python dependencies
└── README.md            # This documentation file

Routes

  • / - Home page
  • /register - Register a new account
  • /login - Log in to an existing account
  • /upload - Upload a file (requires login)
  • /download/<filename> - Download a file (requires login)
  • /delete/<filename> - Delete a file (requires login)
  • /user_management - Admin-only route for managing users
  • and other.

Usage

  • Register: Create an account using your email.
  • Login: Once registered, you can log in to access your personal storage.
  • Upload files: After logging in, use the upload form to add files to your cloud storage.
  • Manage files: Download, delete, or edit uploaded files.
  • Admin: Admin users can view all users, update storage quotas, and manage accounts.

Future Enhancements

  • Implement folder management for better organization of user files.
  • Enable file sharing with access permissions.

About

The Flask Cloud Storage Application is a web-based platform that allows users to securely upload, manage, and download their files. Built with Flask, this application incorporates user authentication, file management functionalities, and administrative controls to handle user accounts and storage quotas.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors