Skip to content

Getting Started

Prerequisites

Tool Version Purpose
Node.js 18+ Runtime
npm 9+ Package manager
Supabase Project Active Backend

Setup

1. Clone and install

git clone https://github.com/anomalyco/pharmanet.git
cd pharmanet/pharmanet-web
npm install

2. Configure environment

cp .env.example .env

Required variables in .env:

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

3. Push Prisma schema

npx prisma db push

4. Run the app

npm run dev
# Opens at http://localhost:5173

5. Login

Use seller credentials (email/password). The app validates the seller role and loads the associated pharmacy profile on login.

Scripts

Script Command
npm run dev Development server
npm run build Production build
npm run preview Preview production build
npm run lint ESLint check
npm test Vitest
npm run db:push Push Prisma schema