<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: cattail</title>
    <description>The latest articles on DEV Community by cattail (@3514165579).</description>
    <link>https://dev.to/3514165579</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3969870%2Fc62b0ca0-05fe-4a98-9749-033de6bfb98a.jpg</url>
      <title>DEV Community: cattail</title>
      <link>https://dev.to/3514165579</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/3514165579"/>
    <language>en</language>
    <item>
      <title>How I built a desktop budgeting app with Flask, SQLite, and Chart.js</title>
      <dc:creator>cattail</dc:creator>
      <pubDate>Fri, 05 Jun 2026 13:03:18 +0000</pubDate>
      <link>https://dev.to/3514165579/how-i-built-a-desktop-budgeting-app-with-flask-sqlite-and-chartjs-4l58</link>
      <guid>https://dev.to/3514165579/how-i-built-a-desktop-budgeting-app-with-flask-sqlite-and-chartjs-4l58</guid>
      <description>&lt;p&gt;I'm a finance student, not a CS major. Last year, I realized I was paying $180 annually to a budgeting app. So I decided to build my own. Here's how it went.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why a Desktop App?
&lt;/h2&gt;

&lt;p&gt;I wanted three things:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;No cloud. My financial data stays on my machine.&lt;/li&gt;
&lt;li&gt;No subscription. Pay once, use forever.&lt;/li&gt;
&lt;li&gt;No setup. Double-click and it works.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;A local web app (Flask + browser) checked all three boxes.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Stack
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Layer&lt;/th&gt;
&lt;th&gt;Technology&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Backend&lt;/td&gt;
&lt;td&gt;Python + Flask&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Database&lt;/td&gt;
&lt;td&gt;SQLite&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Frontend&lt;/td&gt;
&lt;td&gt;HTML, CSS, vanilla JavaScript&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Charts&lt;/td&gt;
&lt;td&gt;Chart.js&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Packaging&lt;/td&gt;
&lt;td&gt;PyInstaller&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;I chose Flask because it's lightweight. SQLite because it's zero-config. Chart.js because it looks great out of the box.&lt;/p&gt;

&lt;h2&gt;
  
  
  What the App Does
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Monthly budget with auto-generated bar and pie charts&lt;/li&gt;
&lt;li&gt;Daily transaction tracking with keyword-based category matching&lt;/li&gt;
&lt;li&gt;Multi-currency support with real-time exchange rate preview&lt;/li&gt;
&lt;li&gt;Savings goals with progress bars and milestone celebrations&lt;/li&gt;
&lt;li&gt;Subscription manager with billing countdowns&lt;/li&gt;
&lt;li&gt;Debt payoff comparison (Snowball vs Avalanche)&lt;/li&gt;
&lt;li&gt;Asset and liability tracking for net worth overview&lt;/li&gt;
&lt;li&gt;Full bilingual support (English and Chinese)&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  The Architecture
&lt;/h2&gt;

&lt;p&gt;The app runs a local Flask server. On startup, it opens the user's browser automatically. All data lives in a single &lt;code&gt;database.db&lt;/code&gt; file next to the executable.&lt;/p&gt;

&lt;p&gt;Here's a simplified view of the project structure:&lt;/p&gt;

&lt;p&gt;budget_tracker/&lt;br&gt;
├── app.py&lt;br&gt;
├── models.py&lt;br&gt;
├── routes.py&lt;br&gt;
├── templates/&lt;br&gt;
│   ├── base.html&lt;br&gt;
│   ├── index.html (dashboard)&lt;br&gt;
│   ├── budget.html&lt;br&gt;
│   ├── transactions.html&lt;br&gt;
│   ├── annual.html&lt;br&gt;
│   ├── savings.html&lt;br&gt;
│   ├── subscriptions.html&lt;br&gt;
│   ├── debt.html&lt;br&gt;
│   ├── assets.html&lt;br&gt;
│   └── settings.html&lt;br&gt;
├── static/&lt;br&gt;
│   ├── css/style.css&lt;br&gt;
│   └── js/&lt;br&gt;
│       ├── charts.js&lt;br&gt;
│       └── app.js&lt;br&gt;
└── database.db&lt;/p&gt;

&lt;h2&gt;
  
  
  Key Design Decisions
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;1. Keyword Auto-Categorization&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Users can set rules in Settings. Type "Starbucks" in the note field, and the category auto-fills to "Food." This is done with a simple dictionary lookup, no AI required.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;2. Multi-Currency Handling&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The Settings page stores exchange rates. When a user logs a transaction in EUR, the app converts it to their base currency (e.g., USD) in real time. The converted value is stored in a separate &lt;code&gt;base_amount&lt;/code&gt; column.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;3. Proactive Alerts&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The dashboard auto-refreshes every 30 seconds via AJAX. If a budget category exceeds 80%, the card turns red. If a subscription bill is due within 7 days, it shows a countdown. No user action needed.&lt;/p&gt;

&lt;h2&gt;
  
  
  Packaging with PyInstaller
&lt;/h2&gt;

&lt;p&gt;The final step was turning the Python project into a single &lt;code&gt;.exe&lt;/code&gt; file:&lt;/p&gt;

&lt;p&gt;pyinstaller --onefile --add-data "templates;templates" --add-data "static;static" app.py&lt;/p&gt;

&lt;p&gt;The output is about 21 MB. Users download, unzip, double-click, and their browser opens automatically. No Python, no pip, no terminal.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I Learned
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Start simple.&lt;/strong&gt; My first version was just a budget table and a transaction log. I added features one by one based on my own needs.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;SQLite is enough.&lt;/strong&gt; For a local single-user app, you don't need PostgreSQL.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Chart.js is wonderful.&lt;/strong&gt; Responsive, customizable, and the CDN link is all you need.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Ship before you feel ready.&lt;/strong&gt; I wanted to add bank sync and a mobile app. Instead, I launched with what I had. Glad I did.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Try It
&lt;/h2&gt;

&lt;p&gt;Fortune Desk is available on itch.io for a one-time purchase. No subscription, no cloud, no accounts.&lt;/p&gt;

&lt;p&gt;If you're a developer thinking about building your own tool — do it. The skills you gain are worth more than any app you'll replace.&lt;/p&gt;

</description>
      <category>beginners</category>
      <category>python</category>
      <category>showdev</category>
      <category>sideprojects</category>
    </item>
  </channel>
</rss>
