Skip to content

Latest commit

 

History

10 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Kids Allowance

A simple, mobile-friendly web app to track weekly allowances and purchases for multiple children.
Built with FastAPI + SQLite (backend) and React + Vite + Nginx (frontend), all containerized with Docker Compose.


Features

Multiple children

  • Name, weekly allowance, and optional starting balance
  • Balances updated automatically

Weekly Allowance Automation

  • Each Sunday, an allowance is deposited
  • Manual “🔄 Sync Allowance” button to catch up missed weeks
  • Ability to change allowance amount every so often

Purchases

  • “Make Purchase” prompts for amount and optional note
  • Deducts instantly from child’s balance

Admin Mode (⚙️)

  • Toggles on/off from the header
  • When enabled, shows “Add Child” form

PWA / Mobile Friendly

  • Tap “Share → Add to Home Screen” to use like an app

Containerized

  • FastAPI served on port 8000
  • Nginx frontend on port 3000
  • SQLite persistent storage via Docker volume

🧱 Tech Stack

Layer Technology
Frontend React + Vite + Nginx
Backend FastAPI (Python 3.11)
Database SQLite (via SQLModel)
Orchestration Docker Compose
Styling Inline / minimal CSS (mobile-first)

Setup & Run

1️⃣ Prerequisites

2️⃣ Build & Run

Clone (or unzip) cd allowance

Build containers docker compose build

Start app docker compose up

Frontend: http://localhost:3000

Backend: http://localhost:8000/api/health

3️⃣ First-Time Setup

Visit http://localhost:3000 Tap ⚙️ to enter Admin Mode Add each child with: Name Weekly allowance (USD) Optional starting balance Tap “Add”

4️⃣ Using the App

Balances update automatically every Sunday Tap 🔄 in the header to manually apply missed weeks Tap Make Purchase → enter amount + optional note → Confirm Balances are stored persistently in the container volume

5️⃣ Add to Home Screen (iPhone / iPad)

Open Safari → visit http://localhost:3000 Tap Share → Add to Home Screen Launch from your Home Screen — it runs fullscreen like a native app

--Vibe coded using ChatGPT-5--

About

Kids allowance application for use as a simple PWA app behind a Cloudflare tunnel or other HTTPS proxy

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages