This is a simple file storage web app built with FastAPI and SQLite. Users can upload files, and the app saves them to disk and records their metadata (original file name, upload time, etc.) in a SQLite database. Users can also download files they've uploaded by clicking on a link.
To run this app, you'll need:
- Python 3.9 or higher
- Docker (optional)
-
Clone this repository to your local machine.
git clone https://github.com/Vangardo/suf.git -
Navigate to the project directory.
cd suf -
Create a virtual environment and activate it.
python3 -m venv venvsource venv/bin/activate -
Install the dependencies.
pip install -r requirements.txt
-
Activate your virtual environment.
source venv/bin/activate -
Run the app.
uvicorn main:app --reload -
Open your web browser and go to
http://localhost:8000.
-
Build the Docker image.
docker build -t suf. -
Run the Docker container.
docker run -p 8000:80 file-storage-app -
Open your web browser and go to
http://localhost:8000.
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.