$ show mouredev/python-web
This repository contains the source code for a personal link-in-bio website (moure.dev) built with the Reflex Python web framework. It serves as both a live production site and a practical example for a 13-hour web development course. The application is a full-stack Python app with a static frontend (React/Reflex) and a Dockerized backend. It integrates multiple external APIs: Twitch (live status), Supabase (featured content), ConfigCat (feature flags), and Beehiiv (newsletter). The architecture follows a component-based design with reusable UI elements (link buttons, cards, navbar, footer) and a centralized state management pattern. The frontend is exported as static HTML/JS and hosted on Vercel, while the backend runs on Railway. The code is well-structured, uses modern Reflex with Radix UI, and includes deployment scripts and a GitHub Actions CI pipeline. It is primarily a learning resource and a functional personal site, not a generic library or framework.
The LLM identified 5 files worth highlighting for reuse:
A versatile button component that renders an icon, title, description, and optional highlight color with animation. It is self-contained, accepts props for styling and behavior, and can be extracted and reused in any Reflex project for link-in-bio or similar layouts.
A card component for displaying featured content with an image, title, and link. It is isolated and parameterized, making it reusable for any list of featured items (e.g., blog posts, courses, projects) in a Reflex app.
Encapsulates Supabase queries for fetching featured content. It provides a clean, reusable interface for interacting with Supabase tables, handling connection and query logic. Can be adapted for other Supabase-backed projects.
Handles Twitch OAuth token generation and validation, and checks live status for a given user. Demonstrates a pattern for managing API tokens with expiration and refresh, reusable for any OAuth-based API integration.
Central Reflex state class that manages live status, schedule, and featured links with async API calls. Implements a clean state pattern with loading states and error handling, reusable as a template for state management in Reflex apps with external dependencies.