Developer Builds NutriApp to Connect Patients with Nutritionists and Health Professionals
A developer has built NutriApp, a study project and health platform designed to connect patients with nutritionists, doctors, and personal trainers, with each user type seeing only the data their role permits. The app is built using React 19, TypeScript, TanStack Start, Tailwind v4, and a Supabase-backed Postgres database with Row Level Security enabled. A key challenge was implementing role-based access control across three core tables, which required custom SECURITY DEFINER functions to prevent policy recursion loops. The platform also automates health profile creation by calculating BMI in real time and generating an initial plan based on the patient's selected goal, reducing manual work for professionals. The developer noted that modeling access roles early in the project and keeping role verification on the backend were among the most important lessons learned.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in