RogiSetu is a comprehensive web application built with Next.js that simplifies hospital OPD (Outpatient Department) management. It provides features for patients to book appointments, track tokens, and for hospital staff to manage departments and patient flow.
The deployed version can be found at rogisetu.vercel.app
- Multi-role authentication system (Patient, Department Admin, Hospital Admin, Super Admin)
- OPD appointment booking and tracking
- Hospital and department management
- Real-time token status updates
- Responsive design with modern UI
- Frontend: Next.js 15, React 18
- Backend: Supabase
- Styling: Tailwind CSS
- UI Components: shadcn/ui
- State Management: Redux Toolkit
- Authentication: Supabase Auth
- Database: Supabase PostgreSQL
- Icons: Lucide Icons
- Form Handling: React Hook Form
Clone the repository:
git clone https://github.com/AdityaSharmaHub/rogisetu.git
cd rogisetu
Install dependencies:
npm install
or
yarn install
Set up environment variables:
Create a .env.local
file in the root directory:
NEXT_PUBLIC_SUPABASE_URL=your_supabase_url
NEXT_PUBLIC_SUPABASE_ANON_KEY=your_supabase_anon_key
NEXT_PUBLIC_SUPABASE_SERVICE_ROLE_KEY=your-supabase-service-role-key
Run the development server:
npm run dev
or
yarn dev
Open http://localhost:3000
with your browser to see the result.
src/
├── actions/ # Server actions
├── app/ # Next.js app router pages
├── components/ # React components
├── hooks/ # Custom React hooks
├── lib/ # Utility functions
├── store/ # Redux store configuration
├── types/ # TypeScript type definitions
└── utils/ # Helper utilities
- Book OPD appointments
- Track token status
- View appointment history
- Manage profile
- Manage tokens
- View queue status
- Handle patient flow
- Manage departments
- Add/remove department admins
- Monitor hospital operations
- Manage hospitals
- Create hospital admins
- Configure department types
Contributions are welcome! Please feel free to submit a Pull Request.