- Python 38.8%
- SCSS 31.3%
- HTML 29.9%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
| assets/scss | ||
| data/tempfiles | ||
| server | ||
| static | ||
| templates | ||
| .gitignore | ||
| README.md | ||
| register_user.py | ||
| run.py | ||
fumo.pet
The website for the Fumo Pet project.
Note: Parts of this codebase were written with the help of AI (Claude). AI-assisted commits are marked with a
Co-Authored-By: Claudetrailer.
Getting started
1. Install dependencies
python -m venv .venv
source .venv/bin/activate
pip install flask psycopg2-binary bcrypt libsass
2. Set up PostgreSQL
Create a database and a user for the app. The users and tempfiles tables are created automatically on startup.
3. Create config.toml
Create config.toml in the project root. It is git-ignored, so your secrets stay local.
secret_key = "change-me-to-something-long-and-random"
# Maximum upload size in MB (optional, defaults to 100)
max_content_length_mb = 100
[database]
host = "localhost"
port = 5432
user = "fumo"
password = "your-password"
database = "fumopet"
# Shown in the site footer as name = link
[mirrors]
example = "https://example.com"
# Listed on the home page and shown at /sinfo/<key>
[services.example]
name = "Example"
url = "https://example.com"
description = "What this service does."
Optionally, list donation methods shown at /donation (linked from the footer) as name = address or link. Full URLs are linked as-is. A bare address is linked as name://address (so monero becomes monero://<address>), while only the address is displayed:
[donation]
paypal = "https://paypal.me/example"
monero = "your-address"
4. Run
python run.py
The site is served at http://127.0.0.1:8000.
5. Create your first user
python register_user.py
You will be prompted for a username, a password, and whether the user should be an admin (y/N, defaults to no). Answer y to make your first admin.
After that, admins can create further users from /dashboard/admin.