Simple Flask app that lets users add/open/delete files (upload folder, templates, static).
Run locally:
-
Create a virtual environment:
- macOS/Linux:
python3 -m venv .venv source .venv/bin/activate - Windows (PowerShell):
python -m venv .venv .\.venv\Scripts\Activate.ps1
- macOS/Linux:
-
Install dependencies:
pip install -r requirements.txt
-
Run locally:
python app.py
OR
- Run manually
$env:FLASK_APP = "app.py"
$env:FLASK_ENV = "development"
python -m flask run
Notes:
- Do NOT commit the
venv/directory or real uploaded user files. The.gitignorecontains rules to avoid that. - Use environment variables (e.g.,
SECRET_KEY) instead of hard-coding secrets. - For production, use
gunicorn(Procfile included).