Source code for https://fumo.pet/
  • Python 38.8%
  • SCSS 31.3%
  • HTML 29.9%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-11-03 16:27:49 +01:00
assets/scss Added tempfile administration tools 2026-11-03 16:27:49 +01:00
data/tempfiles Added empty directories 2026-10-19 00:05:18 +02:00
server Added tempfile administration tools 2026-11-03 16:27:49 +01:00
static Added empty directories 2026-10-19 00:05:18 +02:00
templates Added tempfile administration tools 2026-11-03 16:27:49 +01:00
.gitignore Added .gitignore because broken for some reason... 2026-10-19 18:48:35 +02:00
README.md Donations page 2026-11-03 16:03:07 +01:00
register_user.py Update register_user.py 2026-10-27 18:34:53 +01:00
run.py Initial commit with tempfiles and simple login. 2026-10-18 23:59:59 +02:00

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: Claude trailer.

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.