A modern, secure medication tracking platform built with React, Firebase, and Tailwind CSS.
- 🔐 Secure authentication with Firebase
- 💊 Medication tracking and reminders
- 📊 Analytics dashboard
- 💬 Pharmacy chat integration
- 📱 Fully responsive design
- 🎨 Modern UI with Tailwind CSS
- Frontend: React 19, Vite
- Styling: Tailwind CSS
- Backend: Firebase (Auth, Firestore, Storage)
- Charts: Recharts
- Icons: Heroicons
- Routing: React Router v7
- Node.js 18+ and npm
- Firebase account
- Clone the repository:
git clone <your-repo-url>
cd medtrack- Install dependencies:
npm install- Create
.env.localfile in the root directory:
cp .env.example .env.local- Add your Firebase configuration to
.env.local:
VITE_FIREBASE_API_KEY=your_api_key
VITE_FIREBASE_AUTH_DOMAIN=your_auth_domain
VITE_FIREBASE_PROJECT_ID=your_project_id
VITE_FIREBASE_STORAGE_BUCKET=your_storage_bucket
VITE_FIREBASE_MESSAGING_SENDER_ID=your_messaging_sender_id
VITE_FIREBASE_APP_ID=your_app_id
VITE_FIREBASE_MEASUREMENT_ID=your_measurement_id- Start the development server:
npm run dev- Go to Firebase Console
- Create a new project or select existing one
- Enable Authentication:
- Go to Authentication > Sign-in method
- Enable Email/Password
- Create Firestore Database:
- Go to Firestore Database
- Create database in test mode
- Copy your Firebase config to
.env.local
- Install Vercel CLI:
npm i -g vercel- Deploy:
vercel- Push your code to GitHub
- Go to Vercel Dashboard
- Click "New Project"
- Import your GitHub repository
- Add environment variables in Vercel:
- Go to Project Settings > Environment Variables
- Add all
VITE_FIREBASE_*variables from your.env.local
- Deploy!
Make sure to add these in Vercel Dashboard:
VITE_FIREBASE_API_KEYVITE_FIREBASE_AUTH_DOMAINVITE_FIREBASE_PROJECT_IDVITE_FIREBASE_STORAGE_BUCKETVITE_FIREBASE_MESSAGING_SENDER_IDVITE_FIREBASE_APP_IDVITE_FIREBASE_MEASUREMENT_ID
medtrack/
├── src/
│ ├── components/ # Reusable components
│ │ ├── modals/ # Modal components
│ │ ├── cards/ # Card components
│ │ ├── charts/ # Chart components
│ │ └── ui/ # UI components
│ ├── context/ # React context providers
│ ├── hooks/ # Custom React hooks
│ ├── layouts/ # Layout components
│ ├── pages/ # Page components
│ ├── services/ # API and Firebase services
│ └── utils/ # Utility functions
├── public/ # Static assets
└── .env.local # Environment variables (not in git)
npm run dev- Start development servernpm run build- Build for productionnpm run preview- Preview production buildnpm run lint- Run ESLint
- All Firebase credentials are stored in environment variables
.env.localis gitignored- HIPAA-compliant data handling
- Secure authentication flows
MIT
For support, email support@medtrack.com or open an issue in the repository.