A web application that connects hospitals and medical societies to efficiently redistribute expired or surplus medical equipment.
- Framework: Next.js 14 (App Router)
- Language: TypeScript
- Styling: Tailwind CSS + DaisyUI
- Database: PostgreSQL with Drizzle ORM
- Authentication: NextAuth.js
- Hospital and Medical Society user roles
- Equipment listing management for hospitals
- Equipment browsing and search for medical societies
- Request and approval workflow
- Transfer tracking and history
- Real-time notifications
- Node.js 18+
- PostgreSQL database
- npm or yarn
- Clone the repository:
cd NHS_NEED- Install dependencies:
npm install- Set up environment variables:
cp .env.example .envEdit .env and add your database connection string and other required variables.
- Generate and run database migrations:
npm run db:generate
npm run db:push- Start the development server:
npm run dev- Open http://localhost:3000 in your browser.
npm run db:generate- Generate migration files from schemanpm run db:push- Push schema changes to databasenpm run db:studio- Open Drizzle Studio (database GUI)
NHS_NEED/
├── src/
│ ├── app/ # Next.js app directory (routes)
│ ├── components/ # React components
│ ├── db/ # Database schema and config
│ ├── lib/ # Utility functions
│ └── types/ # TypeScript type definitions
├── public/ # Static files
├── drizzle/ # Database migrations
├── .env # Environment variables
└── package.json # Dependencies
npm run dev- Start development servernpm run build- Build for productionnpm run start- Start production servernpm run lint- Run ESLint
- Create a feature branch
- Make your changes
- Submit a pull request
MIT