Inspiration MedTrack was inspired by UN SDG 3: Good Health and Well-being. Medication adherence is a small daily habit with huge health impact, but it is easy to miss doses when schedules become complicated. We wanted to build a simple tracker that helps people see what they need to take today, mark doses as taken, and understand their weekly adherence.

What it does MedTrack lets users sign in with Google, add medications with dosage and daily dose times, and view a private schedule for today. Users can mark doses as taken, see progress for the day, enable browser reminders, and view a dashboard with weekly adherence, current streak, and missed doses.

How we built it We built MedTrack with Next.js App Router, TypeScript, Tailwind CSS, Prisma, Neon Postgres, NextAuth Google login, and Recharts. Business logic for schedule generation, adherence stats, and validation is kept in pure functions under src/lib, while UI components live under src/components and API routes live under src/app/api.

Challenges we ran into The biggest challenge was making sure user data stayed private. The first version protected the app with Google login, but records were not scoped per user, so different signed-in accounts could see shared data. We fixed this by adding user ownership to medications and dose logs, filtering every database query by the signed-in Google email, and deleting the old shared data.

Accomplishments that we're proud of We are proud that MedTrack is more than a mockup. It has real authentication, persistent database storage, medication validation, a daily schedule, adherence analytics, browser reminders, a polished responsive design, and security checks. We also kept the code structure readable so documentation tools can understand the project later.

What we learned We learned that authentication alone is not enough. Every database read and write also needs correct authorization rules. We also learned how important small product details are: input validation, empty states, mobile layout, visible status icons, and clear privacy pages all matter when building a health-related tool.

What's next for MedTrack Next, we would add more reliable reminders through email, SMS, or push notifications, since browser reminders only work while the app is open. We would also add medication history editing, caregiver sharing, refill reminders, exportable adherence reports, and stronger privacy controls for users managing sensitive health routines.

Built With

  • google-auth
  • node.js
  • pnpm
  • prisma
  • tailwind
  • vercel
Share this project:

Updates