<?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: etoBLISS</title>
    <description>The latest articles on DEV Community by etoBLISS (@eto_bliss).</description>
    <link>https://dev.to/eto_bliss</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%2F3834116%2F59407b12-45b3-4631-96a7-228c711079cc.png</url>
      <title>DEV Community: etoBLISS</title>
      <link>https://dev.to/eto_bliss</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/eto_bliss"/>
    <language>en</language>
    <item>
      <title>From Scratch: A Real-Time Banking App Simulation with Firebase (No Frameworks)</title>
      <dc:creator>etoBLISS</dc:creator>
      <pubDate>Sat, 21 Mar 2026 08:17:39 +0000</pubDate>
      <link>https://dev.to/eto_bliss/from-scratch-a-real-time-banking-app-simulation-with-firebase-no-frameworks-2io2</link>
      <guid>https://dev.to/eto_bliss/from-scratch-a-real-time-banking-app-simulation-with-firebase-no-frameworks-2io2</guid>
      <description>&lt;p&gt;When people think about building a banking app, they immediately jump to heavy frameworks and complex backend systems.&lt;/p&gt;

&lt;p&gt;I wanted to try something different.&lt;/p&gt;

&lt;p&gt;So I built &lt;strong&gt;Paybuntu&lt;/strong&gt;, a premium demo banking app using just &lt;strong&gt;Vanilla JavaScript + Firebase&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;No React. No backend server.&lt;/p&gt;

&lt;p&gt;Just pure logic, structure, and real-time data.&lt;/p&gt;




&lt;h2&gt;
  
  
  What is Paybuntu?
&lt;/h2&gt;

&lt;p&gt;Paybuntu is a demo banking application that simulates a real digital banking experience.&lt;/p&gt;

&lt;p&gt;Users can:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Manage a virtual wallet
&lt;/li&gt;
&lt;li&gt;Transfer funds between accounts
&lt;/li&gt;
&lt;li&gt;Pay bills (TV, electricity, data)
&lt;/li&gt;
&lt;li&gt;Track transactions in real time
&lt;/li&gt;
&lt;li&gt;Customize profiles
&lt;/li&gt;
&lt;li&gt;Experience basic security features like PIN and 2FA (simulated)
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The goal wasn’t just to “build something”…&lt;br&gt;&lt;br&gt;
It was to build something that &lt;em&gt;feels real&lt;/em&gt;.&lt;/p&gt;


&lt;h2&gt;
  
  
  Tech Stack
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Frontend:&lt;/strong&gt; HTML5, Vanilla CSS (Glassmorphism UI), Vanilla JavaScript
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Backend (Serverless):&lt;/strong&gt; Firebase (Auth, Firestore, Hosting, Storage)
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Media:&lt;/strong&gt; Cloudinary (profile uploads)
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Icons &amp;amp; Fonts:&lt;/strong&gt; FontAwesome, Google Fonts
&lt;/li&gt;
&lt;/ul&gt;


&lt;h2&gt;
  
  
  How It Works (Architecture)
&lt;/h2&gt;
&lt;h3&gt;
  
  
  Authentication Flow
&lt;/h3&gt;

&lt;p&gt;Firebase Auth handles user sessions.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Protected pages (dashboard/admin) check auth state
&lt;/li&gt;
&lt;li&gt;Unauthenticated users are redirected to login
&lt;/li&gt;
&lt;li&gt;Session persistence is handled via Firebase + sessionStorage
&lt;/li&gt;
&lt;/ul&gt;


&lt;h3&gt;
  
  
  Real-Time State Management
&lt;/h3&gt;

&lt;p&gt;Instead of manual refreshes, I used Firestore’s &lt;code&gt;onSnapshot&lt;/code&gt;:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Balances update instantly
&lt;/li&gt;
&lt;li&gt;Transactions appear in real-time
&lt;/li&gt;
&lt;li&gt;The app feels “live” without reloads
&lt;/li&gt;
&lt;/ul&gt;


&lt;h3&gt;
  
  
  Global Control System
&lt;/h3&gt;

&lt;p&gt;I implemented a central config document in Firestore:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Toggle &lt;strong&gt;Maintenance Mode&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;Display &lt;strong&gt;Broadcast Messages&lt;/strong&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;This made it easy to control app-wide behavior from one place.&lt;/p&gt;


&lt;h3&gt;
  
  
  Security Flow (Simulated)
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Transaction PIN required before transfers
&lt;/li&gt;
&lt;li&gt;Basic 2FA simulation (mock SMS flow)
&lt;/li&gt;
&lt;li&gt;Login tracking (device, time, browser)
&lt;/li&gt;
&lt;/ul&gt;


&lt;h2&gt;
  
  
  Key Features
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Virtual wallet with unique account numbers
&lt;/li&gt;
&lt;li&gt;Peer-to-peer transfers (with simulated fees)
&lt;/li&gt;
&lt;li&gt;Bill payment system (demo mode)
&lt;/li&gt;
&lt;li&gt;Real-time transaction history
&lt;/li&gt;
&lt;li&gt;Receipt generation + print support
&lt;/li&gt;
&lt;li&gt;Admin dashboard for monitoring and control
&lt;/li&gt;
&lt;li&gt;Profile avatar upload via Cloudinary
&lt;/li&gt;
&lt;/ul&gt;


&lt;h2&gt;
  
  
  What Went Well
&lt;/h2&gt;
&lt;h3&gt;
  
  
  1. Performance
&lt;/h3&gt;

&lt;p&gt;Using Vanilla JS made the app extremely lightweight and fast.&lt;/p&gt;

&lt;p&gt;No unnecessary abstractions.&lt;/p&gt;


&lt;h3&gt;
  
  
  2. Real-Time Experience
&lt;/h3&gt;

&lt;p&gt;Firestore made everything feel instant.&lt;/p&gt;

&lt;p&gt;Seeing balances update live without refresh was a big win.&lt;/p&gt;


&lt;h3&gt;
  
  
  3. UI/UX
&lt;/h3&gt;

&lt;p&gt;I focused heavily on design.&lt;/p&gt;

&lt;p&gt;The glassmorphism + dark mode combo made the app feel premium.&lt;/p&gt;


&lt;h3&gt;
  
  
  4. Serverless Simplicity
&lt;/h3&gt;

&lt;p&gt;No backend server to manage.&lt;/p&gt;

&lt;p&gt;Firebase handled scaling and infrastructure.&lt;/p&gt;


&lt;h2&gt;
  
  
  What I’d Improve
&lt;/h2&gt;
&lt;h3&gt;
  
  
  1. Move Logic to Backend
&lt;/h3&gt;

&lt;p&gt;Some critical logic (like transaction fees) is on the client side.&lt;/p&gt;

&lt;p&gt;In a real system, this must be moved to &lt;strong&gt;Firebase Cloud Functions&lt;/strong&gt;&lt;/p&gt;


&lt;h3&gt;
  
  
  2. Code Structure
&lt;/h3&gt;

&lt;p&gt;Core logic is concentrated in large files like &lt;code&gt;dashboard.js&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;This will become hard to maintain as the app grows.&lt;/p&gt;


&lt;h3&gt;
  
  
  3. Firestore Security Rules
&lt;/h3&gt;

&lt;p&gt;Current rules are too open:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="nx"&gt;js&lt;/span&gt;
&lt;span class="nx"&gt;request&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;auth&lt;/span&gt; &lt;span class="o"&gt;!=&lt;/span&gt; &lt;span class="kc"&gt;null&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;p&gt;You don’t need a heavy stack to build something meaningful.&lt;/p&gt;

&lt;p&gt;But…&lt;/p&gt;

&lt;p&gt;The simpler your tools, the more disciplined your structure needs to be.&lt;/p&gt;

&lt;p&gt;This project taught me more about:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;System thinking&lt;/li&gt;
&lt;li&gt;Real-world app behavior&lt;/li&gt;
&lt;li&gt;Trade-offs between speed and scalability
…than most tutorials ever did.&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>webdev</category>
      <category>programming</category>
      <category>javascript</category>
      <category>tutorial</category>
    </item>
  </channel>
</rss>
