SehatSarv is a modern healthcare management system built with Next.js, TypeScript, and Prisma. This application provides a comprehensive solution for hospital management, including patient management, inventory tracking, OPD management, and bed management.
- 🏥 Hospital Management
- 👥 Patient Management
- 📦 Inventory Management
- 🏥 OPD Management
- 🛏️ Bed Management
- 📱 Modern and Responsive UI
- 🔒 Secure Authentication
- 📊 Real-time Data Management
- Framework: Next.js 14
- Language: TypeScript
- Styling: Tailwind CSS
- Database: Prisma ORM
- UI Components: Radix UI
- Form Handling: React Hook Form
- Validation: Zod
- Animation: Framer Motion
- Icons: Lucide React
- Node.js (Latest LTS version recommended)
- npm or yarn
- PostgreSQL (or your preferred database)
-
Clone the repository:
git clone https://github.com/yourusername/sehatsarv.git cd sehatsarv -
Install dependencies:
npm install # or yarn install -
Set up your environment variables: Create a
.envfile in the root directory and add your environment variables:DATABASE_URL="your_database_url" -
Set up the database:
npx prisma generate npx prisma db push
-
Run the development server:
npm run dev # or yarn dev -
Open http://localhost:3000 in your browser to see the application.
sehatsarv/
├── app/ # Next.js app directory
│ ├── api/ # API routes
│ ├── hospital/ # Hospital management
│ ├── onboard/ # Onboarding
│ ├── AddPatient/ # Patient management
│ ├── Inventory/ # Inventory management
│ ├── beds/ # Bed management
│ └── opd/ # OPD management
├── components/ # Reusable components
├── lib/ # Utility functions and configurations
├── prisma/ # Database schema and migrations
└── public/ # Static assets
npm run dev- Start the development servernpm run build- Build the application for productionnpm run start- Start the production servernpm run lint- Run ESLint for code linting
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add some amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
For support, please open an issue in the GitHub repository or contact the development team.