Blame

73ffc2 Tebby Dog 2025-08-09 21:07:26
adding humor
1
# Pocket Change Showdown: The Penny-Pincher's Paradise
9c1775 Tebby Dog 2025-08-09 19:42:25
formatting
2
73ffc2 Tebby Dog 2025-08-09 21:07:26
adding humor
3
> Feck yeah! It's time to tackle your moving expenses with a dash of style and a whole lot of sass! πŸ’°
e12e4e Tebby Dog 2025-08-09 19:38:10
init
4
5
<div align="center">
73ffc2 Tebby Dog 2025-08-09 21:07:26
adding humor
6
Hey look, there's more Flair than a corporate drone with a Monday morning hangover!
e12e4e Tebby Dog 2025-08-09 19:38:10
init
7
![Flask](https://img.shields.io/badge/Flask-2.3.3-000000?style=for-the-badge&logo=flask)
73ffc2 Tebby Dog 2025-08-09 21:07:26
adding humor
8
![Docker](https://img.shields.io/badge/Docker-Ready-bluecrabby?style=for-the-badge&logo=docker)
9
![Kubernetes](https://img.shields.io/badge/Kubernetes-Ready-bluekitty?style=for-the-badge&logo=kubernetes&logoColor=white)
e12e4e Tebby Dog 2025-08-09 19:38:10
init
10
![License](https://img.shields.io/badge/License-MIT?style=for-the-badge&logo=MIT&label=MIT)
437699 Tebby Dog 2025-08-09 21:02:33
logo
11
<img src="https://teb.codes/2-Code/Flask/Pocket-Change-Showdown/logo.png" alt="logo" width="150"/>
9cf912 Tebby Dog 2025-08-09 19:42:49
formatting
12
73ffc2 Tebby Dog 2025-08-09 21:07:26
adding humor
13
Think you're bad at managing expenses? Ah, quit your whining. We've got everything: [sassy Features](#features) β€’ super-speed [Quick Start](#quick-start) β€’ hassle-free [Installation](#installation) β€’ wordy [Documentation](#documentation) β€’ places to rant... I mean, [Contributing](#contributing)!
e12e4e Tebby Dog 2025-08-09 19:38:10
init
14
</div>
15
16
---
17
18
## πŸ“‹ Table of Contents
73ffc2 Tebby Dog 2025-08-09 21:07:26
adding humor
19
- [What Features?](#features)
20
- [Screenshots – Because Who Reads?](#screenshots)
21
- [Quick Start – No, Really, It’s Quick](#quick-start)
22
- [Slog through Installation](#installation)
23
- [Docker - Walk the Weird Whale](#docker)
24
- [Kubernetes - Because You're Fancy](#kubernetes)
25
- [Local Mayhem - Developer Stuff](#local-development)
26
- [Mess About with Configuration](#configuration)
27
- [Usage - What’s the Point?](#usage)
28
- [Guff About API Documentation](#api-documentation)
29
- [What Matters in Development?](#development)
30
- [Contributing - Your Turn to Bitch](#contributing)
31
- [License - Free Stuff's Always Good](#license)
e12e4e Tebby Dog 2025-08-09 19:38:10
init
32
33
## ✨ Features
34
### Core Functionality
73ffc2 Tebby Dog 2025-08-09 21:07:26
adding humor
35
- πŸ“Έ **Receipt Management** - Store craploads of receipts. We dare you.
36
- πŸ’³ **Multiple Payment Methods** - We track whether you spent cash, credit, IOUs, or favors.
37
- 🏷️ **Smart Categorization** - Keep your spending habits smart and snarky.
38
- πŸ“Š **Analytics Dashboard** - Like looking at a magic crystal ball of shame.
39
- 🎨 **8 Color Themes** - Because your expenses can't be as drab as your personality.
40
- πŸ“± **Mobile Responsive** - Track on the go, from your phone or hell, a potato.
41
- πŸ”’ **No Login Required** - No strings attached, like that one-night stand.
e12e4e Tebby Dog 2025-08-09 19:38:10
init
42
43
### Data Management
73ffc2 Tebby Dog 2025-08-09 21:07:26
adding humor
44
- πŸ“₯ **CSV Import** - Bring the madness of an Excel sheet to a whole new level.
45
- πŸ“€ **CSV Export** - Send your data on a field trip!
46
- πŸ“„ **Template Download** - Look, Ma! I’m organized.
47
- πŸ’Ύ **Persistent Storage** - Data that laughs in the face of restarts.
e12e4e Tebby Dog 2025-08-09 19:38:10
init
48
49
### PCS-Specific Categories
50
- 🚚 Moving
51
- ✈️ Travel
52
- 🏠 Housing
53
- πŸ“¦ Storage
54
- πŸš— Transportation
55
- 🏨 Lodging
56
- πŸ” Food
57
- πŸ“¦ Supplies
58
- πŸ›ŽοΈ Services
73ffc2 Tebby Dog 2025-08-09 21:07:26
adding humor
59
- βž• Make up your own crap!
e12e4e Tebby Dog 2025-08-09 19:38:10
init
60
61
## πŸ“Έ Screenshots
62
ab85f0 Tebby Dog 2025-08-09 20:06:23
added screenies
63
e12e4e Tebby Dog 2025-08-09 19:38:10
init
64
2085b9 Tebby Dog 2025-08-09 20:25:53
added pdf sample
65
### Sample PDF
73ffc2 Tebby Dog 2025-08-09 21:07:26
adding humor
66
Don’t just stand there, gawk! [pdf_sample.pdf](./pdf_sample.pdf)
2085b9 Tebby Dog 2025-08-09 20:25:53
added pdf sample
67
e12e4e Tebby Dog 2025-08-09 19:38:10
init
68
## πŸš€ Quick Start
69
### Docker (Recommended)
70
```bash
73ffc2 Tebby Dog 2025-08-09 21:07:26
adding humor
71
# Unleash the Kraken with the latest image
e12e4e Tebby Dog 2025-08-09 19:38:10
init
72
docker run -d \
73
--name pcs-tracker \
74
-p 5001:5001 \
75
-v pcs-data:/app/data \
76
-v pcs-uploads:/app/uploads \
77
tebwritescode/pocket-change-showdown:latest
73ffc2 Tebby Dog 2025-08-09 21:07:26
adding humor
78
# Chuckle maniacally at http://localhost:5001
e12e4e Tebby Dog 2025-08-09 19:38:10
init
79
```
80
81
### Docker Compose
82
```bash
73ffc2 Tebby Dog 2025-08-09 21:07:26
adding humor
83
# Phone-up Chuck Norris: "We're cloning a repo"
e12e4e Tebby Dog 2025-08-09 19:38:10
init
84
git clone https://github.com/tebwritescode/pocket-change-showdown.git
85
cd pocket-change-showdown
73ffc2 Tebby Dog 2025-08-09 21:07:26
adding humor
86
# Compose your mess with Docker Compose
e12e4e Tebby Dog 2025-08-09 19:38:10
init
87
docker-compose up -d
73ffc2 Tebby Dog 2025-08-09 21:07:26
adding humor
88
# Dance your way to http://localhost:5001
e12e4e Tebby Dog 2025-08-09 19:38:10
init
89
```
90
91
## πŸ“¦ Installation
92
### Docker
73ffc2 Tebby Dog 2025-08-09 21:07:26
adding humor
93
#### Recognizing All Sorts
94
Because compatibility is key, unless it isn't!
e12e4e Tebby Dog 2025-08-09 19:38:10
init
95
```bash
73ffc2 Tebby Dog 2025-08-09 21:07:26
adding humor
96
# Pull for your peculiar machine
e12e4e Tebby Dog 2025-08-09 19:38:10
init
97
docker pull --platform linux/arm64 tebwritescode/pocket-change-showdown:latest
73ffc2 Tebby Dog 2025-08-09 21:07:26
adding humor
98
# Or let Docker rub its chin and decide
e12e4e Tebby Dog 2025-08-09 19:38:10
init
99
docker pull tebwritescode/pocket-change-showdown:latest
100
```
101
73ffc2 Tebby Dog 2025-08-09 21:07:26
adding humor
102
#### Docker Run Degeneracy
e12e4e Tebby Dog 2025-08-09 19:38:10
init
103
```bash
73ffc2 Tebby Dog 2025-08-09 21:07:26
adding humor
104
# Deploy it, Captain
e12e4e Tebby Dog 2025-08-09 19:38:10
init
105
docker run -d \
106
--name pcs-tracker \
107
-p 5001:5001 \
108
tebwritescode/pocket-change-showdown:latest
73ffc2 Tebby Dog 2025-08-09 21:07:26
adding humor
109
# Make it last longer than a baking lesson
e12e4e Tebby Dog 2025-08-09 19:38:10
init
110
docker run -d \
111
--name pcs-tracker \
112
-p 5001:5001 \
113
-v $(pwd)/data:/app/data \
114
-v $(pwd)/uploads:/app/uploads \
115
tebwritescode/pocket-change-showdown:latest
73ffc2 Tebby Dog 2025-08-09 21:07:26
adding humor
116
# Secret sauce for the discerning chef
e12e4e Tebby Dog 2025-08-09 19:38:10
init
117
docker run -d \
118
--name pcs-tracker \
119
-p 5001:5001 \
120
-e SECRET_KEY="your-secret-key-here" \
121
-e FLASK_ENV="production" \
122
-v pcs-data:/app/data \
123
-v pcs-uploads:/app/uploads \
124
tebwritescode/pocket-change-showdown:latest
125
```
126
127
### Kubernetes
128
```bash
73ffc2 Tebby Dog 2025-08-09 21:07:26
adding humor
129
# Manifest your destiny, or just the code
e12e4e Tebby Dog 2025-08-09 19:38:10
init
130
kubectl apply -f k8s/
73ffc2 Tebby Dog 2025-08-09 21:07:26
adding humor
131
# Or one by bloody one
e12e4e Tebby Dog 2025-08-09 19:38:10
init
132
kubectl apply -f k8s/namespace.yaml
133
kubectl apply -f k8s/secret.yaml
134
kubectl apply -f k8s/pvc.yaml
135
kubectl apply -f k8s/deployment.yaml
136
kubectl apply -f k8s/service.yaml
73ffc2 Tebby Dog 2025-08-09 21:07:26
adding humor
137
kubectl apply -f k8s/ingress.yaml # Optional, like an appendix
e12e4e Tebby Dog 2025-08-09 19:38:10
init
138
73ffc2 Tebby Dog 2025-08-09 21:07:26
adding humor
139
# Check if your stuff's intact
e12e4e Tebby Dog 2025-08-09 19:38:10
init
140
kubectl get all -n pcs-tracker
73ffc2 Tebby Dog 2025-08-09 21:07:26
adding humor
141
# If it worked, buy yourself a drink at http://<node-ip>:30001
e12e4e Tebby Dog 2025-08-09 19:38:10
init
142
```
143
73ffc2 Tebby Dog 2025-08-09 21:07:26
adding humor
144
#### Kubernetes Thingamabobs
145
- **Persistent Volumes** - Turns out you don’t need to webscrape for data–it sticks around.
146
- **Health Checks** - It only mostly dies.
147
- **Resource Limits** - So demanding!
148
- **Multi-Service** - Load balance like a tightrope walker.
149
- **Ingress Ready** - Fancy domain? Me too.
e12e4e Tebby Dog 2025-08-09 19:38:10
init
150
151
### Local Development
152
```bash
73ffc2 Tebby Dog 2025-08-09 21:07:26
adding humor
153
# Kiss the clouds goodbye
e12e4e Tebby Dog 2025-08-09 19:38:10
init
154
git clone https://github.com/tebwritescode/pocket-change-showdown.git
155
cd pocket-change-showdown
73ffc2 Tebby Dog 2025-08-09 21:07:26
adding humor
156
# Create a virtual haven
e12e4e Tebby Dog 2025-08-09 19:38:10
init
157
python3 -m venv venv
73ffc2 Tebby Dog 2025-08-09 21:07:26
adding humor
158
source venv/bin/activate
159
# Unload a bag of dependencies
e12e4e Tebby Dog 2025-08-09 19:38:10
init
160
pip install -r requirements.txt
73ffc2 Tebby Dog 2025-08-09 21:07:26
adding humor
161
# Go-Go-Gadget application
e12e4e Tebby Dog 2025-08-09 19:38:10
init
162
python app.py
73ffc2 Tebby Dog 2025-08-09 21:07:26
adding humor
163
# Channel your inner regulator at http://localhost:5001
e12e4e Tebby Dog 2025-08-09 19:38:10
init
164
```
165
166
## βš™οΈ Configuration
167
### Environment Variables
168
| Variable | Description | Default |
169
|----------|-------------|---------|
73ffc2 Tebby Dog 2025-08-09 21:07:26
adding humor
170
| `SECRET_KEY` | SMERSH-level deception sessions key | `pcs-secret-key-2024` |
171
| `FLASK_ENV` | Sneaky environment mood | `production` |
172
| `DATABASE_URL` | Alchemize this: your database | `sqlite:///data/pcs_tracker.db` |
173
| `MAX_CONTENT_LENGTH` | Maximum cr-p (content) upload size | `16777216` (16MB) |
e12e4e Tebby Dog 2025-08-09 19:38:10
init
174
175
### Data Persistence
73ffc2 Tebby Dog 2025-08-09 21:07:26
adding humor
176
To make data hang around like a bad smell:
177
- `/app/data` - SQLite domicile
178
- `/app/uploads` - Receipts chill as BLOBs
e12e4e Tebby Dog 2025-08-09 19:38:10
init
179
180
## πŸ“± Usage
73ffc2 Tebby Dog 2025-08-09 21:07:26
adding humor
181
### Tossin' Pennies - Adding Expenses
182
1. Sing "Add Expense!" from any rooftop or just click it
183
2. Wake up from title-only dream
184
3. Attach facepalming receipts (optional)
185
4. Ceremoniously hit "Save"
186
187
### Inflicting Data - Importing
188
1. Explore **Import/Export** β†’ **Import CSV**
189
2. Don shiny template armor
190
3. Be daVinci, fill your masterpiece
191
4. Blast off with CSV sere-naah-de
192
193
### Cheese-Cutting Format
e12e4e Tebby Dog 2025-08-09 19:38:10
init
194
```csv
195
Date,Title,Description,Category,Cost,Payment Method,Location,Vendor,Notes,Tags
196
2024-01-15,Moving Truck,U-Haul rental,Moving,299.99,Credit Card,Downtown,U-Haul,26ft truck,moving
197
2024-01-16,Hotel Stay,Overnight stay,Lodging,125.00,Company Card,Holiday Inn,Holiday Inn,1 night,travel
198
```
199
73ffc2 Tebby Dog 2025-08-09 21:07:26
adding humor
200
### Manipulating Categories & Payment Methods
201
1. Go where no wo/man has deemed necessary: **Settings**
202
2. Cust-omize your little heart out
203
3. Create methods even mad scientists couldn’t
204
4. Marry whimsy: color themes purr with indulgence
e12e4e Tebby Dog 2025-08-09 19:38:10
init
205
73ffc2 Tebby Dog 2025-08-09 21:07:26
adding humor
206
### Accidental Analytics Dashboard
207
- Scorn last week, guilt-trip for next: from nanosecond to year
208
- See-spend scenario via doughnut dive
209
- Payment method squabbles (Bar chart showdown)
210
- Dailies take you on the trend train (Line chart)
211
- Top dog categories, percentages & flaunting aplenty
e12e4e Tebby Dog 2025-08-09 19:38:10
init
212
73ffc2 Tebby Dog 2025-08-09 21:07:26
adding humor
213
## πŸ”Œ API Guff
e12e4e Tebby Dog 2025-08-09 19:38:10
init
214
### Endpoints
73ffc2 Tebby Dog 2025-08-09 21:07:26
adding humor
215
| Method | Endpoint | Quirky Description |
216
|--------|----------|--------------------|
217
| GET | `/` | Home sweet home(wrecker) |
218
| GET | `/expenses` | Expense expedition |
219
| GET/POST | `/expense/new` | New expense enlightenment |
220
| GET/POST | `/expense/<id>/edit` | Edit the unavoidable |
221
| POST | `/expense/<id>/delete` | PURGE! |
222
| GET | `/expense/<id>/receipt` | Picture-perception |
223
| GET | `/dashboard` | Analytical nincompoopery |
224
| GET | `/api/expense_data` | JSON chateria |
225
| GET/POST | `/settings` | Mischief management |
226
| POST | `/settings/category/add` | Go rogue - add category |
227
| POST | `/settings/payment/add` | Payment etiquette upgrade |
228
| GET | `/export` | CSV in Wonderland |
229
| GET/POST | `/import` | CSV Carousel |
230
| GET | `/template` | CSV preface nobility |
231
232
### API Response Satire
e12e4e Tebby Dog 2025-08-09 19:38:10
init
233
```json
234
GET /api/expense_data?period=month
235
{
236
"categories": {
237
"labels": ["Moving", "Travel", "Housing"],
238
"data": [1250.50, 890.25, 2100.00]
239
},
240
"payment_methods": {
241
"labels": ["Credit Card", "Cash", "Company Card"],
242
"data": [3500.75, 450.00, 290.00]
243
},
244
"daily_trend": {
245
"labels": ["2024-01-01", "2024-01-02"],
246
"data": [125.50, 340.25]
247
}
248
}
249
```
250
73ffc2 Tebby Dog 2025-08-09 21:07:26
adding humor
251
## πŸ› οΈ Development - Why Bother?
e12e4e Tebby Dog 2025-08-09 19:38:10
init
252
### Tech Stack
73ffc2 Tebby Dog 2025-08-09 21:07:26
adding humor
253
- **Backend**: Flask, spicy SQLAlchemy
254
- **Frontend**: Bootstrap, Chart.js, Font Awesome (a peacock)
255
- **Database**: SQLite: SQLAlchemy Sings
256
- **File Storage**: Database belly storage
257
- **Deployment**: Orchestrations with Docker, Kubernetes & Gunicorn bravado
e12e4e Tebby Dog 2025-08-09 19:38:10
init
258
73ffc2 Tebby Dog 2025-08-09 21:07:26
adding humor
259
### Structure of Madness
e12e4e Tebby Dog 2025-08-09 19:38:10
init
260
```
261
pocket-change-showdown/
73ffc2 Tebby Dog 2025-08-09 21:07:26
adding humor
262
β”œβ”€β”€ app.py # App-worthy babel
263
β”œβ”€β”€ requirements.txt # Dependency lug
264
β”œβ”€β”€ Dockerfile # Docker concoction
265
β”œβ”€β”€ docker-compose.yml # Docker squad
266
β”œβ”€β”€ templates/ # HTML insidiousness
267
β”‚ β”œβ”€β”€ base.html # The totally base
268
β”‚ β”œβ”€β”€ index.html # Page of presents
269
β”‚ β”œβ”€β”€ expenses.html # Expense paradox
270
β”‚ β”œβ”€β”€ expense_form.html # Input vs Reality
271
β”‚ β”œβ”€β”€ dashboard.html # Chase your shame
272
β”‚ β”œβ”€β”€ settings.html # Hangover fixes
273
β”‚ └── import.html # CSV courtship
274
β”œβ”€β”€ k8s/ # Kubernetes enigma
e12e4e Tebby Dog 2025-08-09 19:38:10
init
275
β”‚ β”œβ”€β”€ namespace.yaml
276
β”‚ β”œβ”€β”€ secret.yaml
277
β”‚ β”œβ”€β”€ pvc.yaml
278
β”‚ β”œβ”€β”€ deployment.yaml
279
β”‚ β”œβ”€β”€ service.yaml
280
β”‚ └── ingress.yaml
73ffc2 Tebby Dog 2025-08-09 21:07:26
adding humor
281
└── data/ # Runtime ingenuity
e12e4e Tebby Dog 2025-08-09 19:38:10
init
282
```
283
73ffc2 Tebby Dog 2025-08-09 21:07:26
adding humor
284
### Born from Code
e12e4e Tebby Dog 2025-08-09 19:38:10
init
285
```bash
73ffc2 Tebby Dog 2025-08-09 21:07:26
adding humor
286
# Glayvin! Build me this Docker monstrosity
e12e4e Tebby Dog 2025-08-09 19:38:10
init
287
docker build -t pcs-tracker .
73ffc2 Tebby Dog 2025-08-09 21:07:26
adding humor
288
# Partake in fetching multi-arch wonders
e12e4e Tebby Dog 2025-08-09 19:38:10
init
289
docker buildx build \
290
--platform linux/amd64,linux/arm64,linux/arm/v7 \
291
-t tebwritescode/pocket-change-showdown:latest \
292
--push .
293
```
294
73ffc2 Tebby Dog 2025-08-09 21:07:26
adding humor
295
### The Flat Schema (Non-Skiable)
e12e4e Tebby Dog 2025-08-09 19:38:10
init
296
```sql
73ffc2 Tebby Dog 2025-08-09 21:07:26
adding humor
297
-- Ground Zero table for expense
e12e4e Tebby Dog 2025-08-09 19:38:10
init
298
CREATE TABLE expense (
73ffc2 Tebby Dog 2025-08-09 21:07:26
adding humor
299
id INTEGER,
e12e4e Tebby Dog 2025-08-09 19:38:10
init
300
title VARCHAR(200),
301
description TEXT,
73ffc2 Tebby Dog 2025-08-09 21:07:26
adding humor
302
category_id INTEGER,
303
cost FLOAT,
304
payment_method_id INTEGER,
e12e4e Tebby Dog 2025-08-09 19:38:10
init
305
date DATE,
306
receipt_image BLOB,
307
receipt_filename VARCHAR(200),
308
location VARCHAR(200),
309
vendor VARCHAR(200),
310
notes TEXT,
311
tags VARCHAR(500),
312
created_at DATETIME,
73ffc2 Tebby Dog 2025-08-09 21:07:26
adding humor
313
updated_at DATETIME,
314
PRIMARY KEY (id)
e12e4e Tebby Dog 2025-08-09 19:38:10
init
315
);
73ffc2 Tebby Dog 2025-08-09 21:07:26
adding humor
316
-- Column of categorization
e12e4e Tebby Dog 2025-08-09 19:38:10
init
317
CREATE TABLE category (
73ffc2 Tebby Dog 2025-08-09 21:07:26
adding humor
318
id INTEGER,
319
name VARCHAR(100),
320
color VARCHAR(7),
321
icon VARCHAR(50),
322
is_default BOOLEAN,
323
PRIMARY KEY (id)
e12e4e Tebby Dog 2025-08-09 19:38:10
init
324
);
73ffc2 Tebby Dog 2025-08-09 21:07:26
adding humor
325
-- Noteworthy payment table
e12e4e Tebby Dog 2025-08-09 19:38:10
init
326
CREATE TABLE payment_method (
73ffc2 Tebby Dog 2025-08-09 21:07:26
adding humor
327
id INTEGER,
328
name VARCHAR(100),
329
icon VARCHAR(50),
330
is_default BOOLEAN,
331
PRIMARY KEY (id)
e12e4e Tebby Dog 2025-08-09 19:38:10
init
332
);
73ffc2 Tebby Dog 2025-08-09 21:07:26
adding humor
333
-- Settings booth
e12e4e Tebby Dog 2025-08-09 19:38:10
init
334
CREATE TABLE settings (
73ffc2 Tebby Dog 2025-08-09 21:07:26
adding humor
335
id INTEGER,
336
color_scheme VARCHAR(50),
337
default_view VARCHAR(20),
338
PRIMARY KEY (id)
e12e4e Tebby Dog 2025-08-09 19:38:10
init
339
);
340
```
341
73ffc2 Tebby Dog 2025-08-09 21:07:26
adding humor
342
## πŸ“„ License - Go Forth and Conquer!
343
This project is merrily open source and blissfully up for grabs under the [MIT License](LICENSE).
e12e4e Tebby Dog 2025-08-09 19:38:10
init
344
73ffc2 Tebby Dog 2025-08-09 21:07:26
adding humor
345
## πŸ™ Cheers & Acknowledgments
346
- Built under the spell of Flask and Bootstrap
347
- Charts magicked by Chart.js
348
- Icons with Font Awesome - Awe as your own
e12e4e Tebby Dog 2025-08-09 19:38:10
init
349
73ffc2 Tebby Dog 2025-08-09 21:07:26
adding humor
350
## πŸ“ž Screech for Help
351
For tirades, discontent, or amusing suggestions:
352
- Holler on [GitHub Issues](https://github.com/tebwritescode/pocket-change-showdown/issues)
353
- Vent thoroughly in GitHub Discussions
e12e4e Tebby Dog 2025-08-09 19:38:10
init
354
355
---
356
<div align="center">
73ffc2 Tebby Dog 2025-08-09 21:07:26
adding humor
357
**P**ocket **C**hange **S**howdown - Because tracking every penny is nothing short of glorious insanity!
e12e4e Tebby Dog 2025-08-09 19:38:10
init
358
</div>