A full-stack web application to manage microloans, built with Django, Supabase, Bootstrap, and deployed on Vercel. Track loans, toggle statuses, visualize analytics, and switch between dark/light themes—all in a responsive, user-friendly interface.
https://microloan-tracker.vercel.app
- Loan Management: Create, edit, delete, and toggle loan statuses (Active/Paid).
- Overdue Alerts: Highlights loans past due dates.
- Analytics: Pie chart visualization of Active vs. Paid loans using Chart.js.
- Theme Toggle: Dark/light mode with cookie-based persistence.
- Responsive UI: Styled with Bootstrap for seamless use on desktop and mobile.
- Data Validation: Client-side checks for dates (YYYY-MM-DD), amounts, and categories.
- Frontend: Bootstrap, JavaScript, Chart.js
- Backend: Django, Python
- Database: Supabase (PostgreSQL)
- Deployment: Vercel
- Tools: Git, GitHub
-
Clone the Repo
git clone https://github.com/ConradPB/microloan-tracker.git cd microloan-tracker
-
Set Up Virtual Environment
python -m venv venv source venv/bin/activate # Mac/Linux venv\Scripts\activate # Windows
-
Install Dependencies
pip install -r requirements.txt
-
Configure Supabase
- Sign up at Supabase, create a project.
- Set up a
loans
table with columns:id
,borrower
,amount
,status
,due_date
,category
. - Update
settings.py
with your Supabase URL and key:DATABASES = { 'default': { 'ENGINE': 'django.db.backends.postgresql', 'NAME': 'postgres', 'USER': 'postgres', 'PASSWORD': '[YOUR_SUPABASE_KEY]', 'HOST': '[YOUR_SUPABASE_HOST]', 'PORT': '5432', } }
-
Run Migrations
python manage.py makemigrations python manage.py migrate
-
Start the Server
python manage.py runserver
- Visit
http://127.0.0.1:8000
.
- Vercel:
- Push to GitHub, link to Vercel, set
DEBUG = False
insettings.py
. - Add
vercel.json
for routing (see repo).
- Push to GitHub, link to Vercel, set
Fork, branch, and PR! Issues welcome on GitHub.
MIT License - feel free to use and adapt.
Name: Conrad Philip B. M
Email: cpbmbaz57@gmail.com
GitHub: ConradPB (https://github.com/ConradPB)