{"id":25945940,"url":"https://github.com/tom474/hospital_management_website","last_synced_at":"2025-07-12T14:34:42.862Z","repository":{"id":256152738,"uuid":"838867538","full_name":"tom474/hospital_management_website","owner":"tom474","description":"[RMIT 2024B] ISYS2099 - Database Applications - Group Assignment","archived":false,"fork":false,"pushed_at":"2025-02-19T06:26:41.000Z","size":912,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-04T09:19:31.792Z","etag":null,"topics":["daisyui","expressjs","javascript","mongodb","mysql","nodejs","reactjs","tailwindcss","web-development"],"latest_commit_sha":null,"homepage":"https://youtu.be/fK2lt8eIvJg?si=Zu--IZ3GZRsCoYmh","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tom474.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-08-06T13:54:25.000Z","updated_at":"2025-02-19T06:26:44.000Z","dependencies_parsed_at":"2024-09-09T09:34:15.731Z","dependency_job_id":"439a283b-38a1-4c46-bac6-c16dd670f7c1","html_url":"https://github.com/tom474/hospital_management_website","commit_stats":null,"previous_names":["tom474/hospital_management_system","tom474/hospital_management_website"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/tom474/hospital_management_website","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tom474%2Fhospital_management_website","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tom474%2Fhospital_management_website/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tom474%2Fhospital_management_website/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tom474%2Fhospital_management_website/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tom474","download_url":"https://codeload.github.com/tom474/hospital_management_website/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tom474%2Fhospital_management_website/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265003769,"owners_count":23696279,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["daisyui","expressjs","javascript","mongodb","mysql","nodejs","reactjs","tailwindcss","web-development"],"created_at":"2025-03-04T09:19:31.976Z","updated_at":"2025-07-12T14:34:42.816Z","avatar_url":"https://github.com/tom474.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Hospital Management Website\n\nA **web-based hospital management system** designed to streamline **patient management, staff scheduling, appointment handling, and medical records**. The system efficiently integrates **structured (SQL) and unstructured (NoSQL) data** to ensure secure, scalable, and high-performance healthcare management.  \n\n## Tech Stack\n\n- **Client:** React.js, Tailwind CSS, Daisy UI  \n- **Server:** Node.js, Express.js  \n- **Database:** MySQL (Relational), MongoDB (Document-based)\n\n## Features\n\n### Patient Management  \n- Register and manage patient profiles.  \n- Store and retrieve **structured data** (personal details, medical history).  \n- Manage **unstructured data** (doctor’s notes, diagnostic images, lab results).  \n\n### Staff Management  \n- Manage staff profiles, roles, and schedules.  \n- Store **job change history** (title, salary, department).  \n- Maintain staff certificates and training records in MongoDB.  \n\n### Appointment Management  \n- View doctor schedules (busy/available status).  \n- Book, update, and cancel appointments.  \n- Prevent scheduling conflicts using transaction management.  \n\n### Reporting \u0026 Analytics  \n- Generate patient treatment history reports.  \n- Track **staff workload and performance** over time.  \n- View **billing and financial reports**.  \n\n### Security \u0026 Access Control  \n- **Role-based Access Control (RBAC)** for data privacy.  \n- Secure **staff permissions** (nurses can’t see sensitive patient details, only admins can view reports).  \n- Enforced **data integrity** through stored procedures and transactions.  \n\n### Performance Optimizations  \n- **Indexing \u0026 Partitioning** for efficient query execution.  \n- Optimized **query performance** for fast data retrieval.  \n- Secure storage of **sensitive information** (encryption \u0026 hashed credentials).  \n\n## Quick Start\n\n\u003e Follow these steps to set up the project locally on your machine.\n\nClone the repository\n\n```bash\ngit clone https://github.com/tom474/hospital_management_website.git\n```\n\nNavigate to the project directory\n\n```bash\ncd hospital_management_website\n```\n\nCreate `.env` file in `server` and set up environment variables\n\n```\nDB_HOST=\"localhost\"\nDB_DATABASE=\"hospital_database\"\n\nDB_USER_ADMIN=\"admin\"\nDB_PASS_ADMIN=\"admin123\"\n\nDB_USER_RECEPTIONIST=\"receptionist\"\nDB_PASS_RECEPTIONIST=\"receptionist123\"\n\nDB_USER_DOCTOR=\"doctor\"\nDB_PASS_DOCTOR=\"doctor123\"\n\nDB_USER_NURSE=\"nurse\"\nDB_PASS_NURSE=\"nurse123\"\n\nMONGO_URI=\"your_mongo_uri\"\nMONGO_DATABASE_NAME=\"hospital_database\"\n```\n\n### MySQL Setup\n\nFrom the project's root directory, navigate to `database/mysql`\n\n```bash\ncd database/mysql\n```\n\nInstall dependencies\n\n```bash\nnpm install\n```\n\nInitialize the MySQL Database\n\n```bash\nnpm run setup-with-mock-data\n```\n\n### MongoDB Setup\n\nFrom the project's root directory, navigate to `database/mongodb`\n\n```bash\ncd database/mongodb\n```\n\nInstall dependencies\n\n```bash\nnpm install\n```\n\n### Server Setup\n\nFrom the project's root directory, navigate to `server`\n\n```bash\ncd server\n```\n\nInstall dependencies\n\n```bash\nnpm install\n```\n\nStart the server\n```bash\nnpm start\n```\n\n### Client Setup\n\nFrom the project's root directory, navigate to `client`\n\n```bash\ncd client\n```\n\nInstall dependencies\n\n```bash\nnpm install\n```\n\nStart the client\n```bash\nnpm run dev\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftom474%2Fhospital_management_website","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftom474%2Fhospital_management_website","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftom474%2Fhospital_management_website/lists"}