Skip to content

AhmdSmida/smartpharma

Repository files navigation

SmartPharma

A modern pharmacy inventory management platform built with React and Supabase.

Features

  • Real-time stock tracking and inventory management
  • Automated alerts for low stock, expiring, and expired medications
  • AI-powered shortage predictions and reorder suggestions
  • Analytics dashboard with charts and inventory insights
  • Multi-step registration with pharmacy profile
  • Google OAuth and email/password authentication
  • Responsive design with animated login/register experience

Tech Stack

  • Frontend: React 18, Vite, Tailwind CSS
  • Backend: Supabase (PostgreSQL + Auth)
  • Charts: Recharts
  • Deployment: Vercel

Getting Started

1. Clone the repo

git clone https://github.com/YOUR_USERNAME/smartpharma.git
cd smartpharma

2. Install dependencies

npm install

3. Set up environment variables

cp .env.example .env.local

Edit .env.local and fill in your Supabase project URL and anon key:

VITE_SUPABASE_URL=https://your-project-ref.supabase.co
VITE_SUPABASE_ANON_KEY=your-anon-key-here

4. Set up the database

Run the SQL migrations in order in your Supabase SQL Editor:

  1. supabase/migrations/001_initial_schema.sql
  2. supabase/migrations/002_profiles.sql

5. Run the dev server

npm run dev

Deployment

The app is configured for Vercel. Set the same environment variables in your Vercel project dashboard before deploying.

License

MIT

About

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors