Skip to content

kudzuweb/myayu-mvp

Repository files navigation

MyAyu MVP

Health tracking application for patients and clinicians built with React, TypeScript, Vite, Tailwind CSS, and Supabase.

Tech Stack

  • Frontend: React 19 + TypeScript
  • Build Tool: Vite
  • Styling: Tailwind CSS v4
  • Routing: React Router
  • Backend: Supabase (PostgreSQL)

Getting Started

Prerequisites

  • Node.js (v18 or higher)
  • npm or yarn
  • A Supabase account and project

Installation

  1. Clone the repository and navigate to the project directory:
cd myayu-mvp
  1. Install dependencies:
npm install
  1. Set up environment variables:

Copy the .env.example file to .env:

cp .env.example .env

Then edit .env and add your Supabase credentials:

VITE_SUPABASE_URL=your-supabase-project-url
VITE_SUPABASE_ANON_KEY=your-supabase-anon-key

You can find these values in your Supabase project settings:

  • Go to https://app.supabase.com
  • Select your project
  • Navigate to Settings → API
  • Copy the Project URL and anon/public key

Development

Start the development server:

npm run dev

The app will be available at http://localhost:5173

Build

Build for production:

npm run build

Preview the production build:

npm run preview

Project Structure

src/
├── components/     # Shared UI components
│   └── Layout.tsx  # Main layout with navigation
├── lib/            # Utilities and configuration
│   └── supabaseClient.ts  # Supabase client setup
└── routes/         # Page components
    ├── PatientDailyEntryPage.tsx
    ├── PatientTrackerPage.tsx
    └── ClinicianTrackerPage.tsx

Routes

  • /patient/daily - Patient daily entry form
  • /patient/tracker - Patient tracker with multiple lenses
  • /clinician/tracker/:patientId - Clinician view (read-only)

Development Notes

  • The app uses Tailwind CSS v4 with the new @theme configuration syntax
  • Environment variables must be prefixed with VITE_ to be accessible in the client
  • The Supabase client includes centralized error handling via handleSupabaseError()

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages