๐Ÿค  The Homestead

__


Inspiration

My little brother hates brushing his teeth. He throws clothes everywhere. He takes ages to get ready for school. He's a picky eater who skips lunch. Even as he approaches his pre-teen years, building basic habits feels like a never-ending battle.

I wanted to build something that would actually make him want to do these things โ€” not because he was nagged, but because there was something real at stake.

Want your PlayStation time? Better earn it like a cowboy.

YEE HAW. ๐Ÿค 

That's The Homestead.


๐Ÿชถ What It Does

The Homestead is a gamified habit system for families. Parents become Sheriffs, kids become Cowboys, and the home becomes the Wild West.

How it works

  1. Sheriff posts a Bounty โ€” "Brush your teeth by 7:30 AM" or "Make your bed every morning"
  2. Cowboy completes it and submits for review
  3. Sheriff approves via the Ledger โ€” gold and XP are awarded
  4. Cowboy spends gold in the General Store on real rewards the Sheriff set up โ€” extra screen time, choosing dinner, staying up late
  5. Sheriff marks it delivered โ€” or denies it if the deal wasn't held up

Every family gets their own private Homestead with a unique 6-character join code. No two families share data.


๐Ÿ”ฅ Streak Mechanics (Grit System)

Your rewards dynamically adjust based on consistency:

$$ \text{Gold Earned} = \text{Base Reward} \times \begin{cases} 2 & \text{if 7-day streak (Gold Rush)} \ 0.5 & \text{if streak broken (Cracked Grit)} \ 1 & \text{otherwise} \end{cases} $$

  • Miss a day โ†’ Cracked Grit penalty (0.5ร— rewards)
  • Recover with a 3-day rebuild streak
  • Hit 7 days โ†’ Gold Rush bonus (2ร— rewards)

๐Ÿ“… Smart Scheduling System

Bounties can be:

  • Daily (specific time with AM/PM picker)
  • Weekly (selected days)
  • Monthly (specific date)
  • Open Range (no deadline)

Overdue tasks are flagged in real-time. You can't fake a streak.


๐Ÿ› ๏ธ How I Built It

I started with a prototype on Replit to get the concept working, then used Claude to help rebuild and expand it into a full Next.js + Django application.

Backend:

  • Django (Python) โ€” REST API with class-based views
  • SQLite โ€” simple, zero-config database
  • Session-based auth with HTTP-only cookies
  • Every query scoped to the family's homestead

Frontend:

  • Next.js 14 (App Router) with TypeScript
  • Tailwind CSS with a custom Wild West design system
  • Rye + Special Elite fonts for the authentic theme
  • Role-based routing โ€” /sheriff/* and /cowboy/*

โš ๏ธ Challenges I Faced

Streak Logic โ€” The bonus and penalty system had a lot of moving parts. Making sure everything was calculated correctly on the server and couldn't be cheated took a lot of careful testing.

Running it Locally โ€” As a first timer, setting up Django and Next.js together on localhost took a lot of troubleshooting. Getting the frontend to talk to the backend correctly, dealing with CORS, and figuring out why changes weren't loading was a challenge in itself.


๐Ÿ“š What I Learned

  • Creating a back end and front end server on my own computer and running an website on it with Django and Next.Js
  • File organization for for backend and frontend
  • Using Ai to solve personal problems.

๐Ÿš€ What's Next

  • ๐Ÿ”” Push notifications when bounties are approved
  • ๐Ÿซ Classroom mode with multi-homestead support
  • ๐Ÿ“ฆ Bounty template library
  • ๐Ÿ“ฑ Mobile app (React Native)

๐Ÿงฐ Built With

Python ยท Django ยท SQLite ยท Next.js 14 ยท TypeScript ยท React ยท Tailwind CSS ยท Rye ยท Special Elite

Built With

Share this project:

Updates