{"id":34167960,"url":"https://github.com/saransridatha/hospital_db","last_synced_at":"2026-03-10T09:39:41.266Z","repository":{"id":259949351,"uuid":"879891306","full_name":"saransridatha/hospital_db","owner":"saransridatha","description":"A hospital patient records application built as a college project using Go, Fyne, and MySQL. It enables users to add, view, search, and remove patient details, helping healthcare workers manage records efficiently.","archived":false,"fork":false,"pushed_at":"2024-10-29T06:14:14.000Z","size":298,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-12-18T06:49:11.302Z","etag":null,"topics":["fyne","go","golang","mysql","mysql-database","sql"],"latest_commit_sha":null,"homepage":"","language":"Go","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/saransridatha.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-10-28T18:19:00.000Z","updated_at":"2024-12-25T12:31:00.000Z","dependencies_parsed_at":"2024-10-28T19:50:39.863Z","dependency_job_id":null,"html_url":"https://github.com/saransridatha/hospital_db","commit_stats":null,"previous_names":["saransridatha/hospital_db"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/saransridatha/hospital_db","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saransridatha%2Fhospital_db","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saransridatha%2Fhospital_db/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saransridatha%2Fhospital_db/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saransridatha%2Fhospital_db/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/saransridatha","download_url":"https://codeload.github.com/saransridatha/hospital_db/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saransridatha%2Fhospital_db/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30328884,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-10T05:25:20.737Z","status":"ssl_error","status_checked_at":"2026-03-10T05:25:17.430Z","response_time":106,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["fyne","go","golang","mysql","mysql-database","sql"],"created_at":"2025-12-15T10:42:52.207Z","updated_at":"2026-03-10T09:39:41.253Z","avatar_url":"https://github.com/saransridatha.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# **Hospital DB:** A Hospital Patient Records Application\n\nThis is a college project for managing hospital patient records. The application allows users to add, fetch, and remove patient records from a MySQL database.\n\n## Features\n\n- Add new patient records\n- Fetch and display existing patients\n- Remove patient records by ID\n- Search for patients by name\n\n## Prerequisites\n\nBefore running the application, ensure you have the following installed:\n\n- [Go](https://golang.org/doc/install) (version 1.22 or later)\n- [MySQL](https://dev.mysql.com/doc/refman/8.0/en/installing.html)\n\n## Installation Steps\n#### ***Note:*** *This application is built and tested on a Linux machine(Fedora 40), it might not work the same on Windows/MacOS.*\n### 1. Install MySQL\n\nFollow the official MySQL installation guide for your operating system. Ensure you have a running MySQL server and have created a database named `hospital_db`.\n\n### 2. Set Up the Database\n\nExecute the SQL commands in the `database.sql` file to create the necessary tables. You can run the script using the MySQL command line:\n\n```bash\nmysql -u \u003cmysql-UserName\u003e -p hospital_db \u003c database.sql\n```\nReplace `\u003cmysql-UserName\u003e` with your MySQL username.\nEnter your MySQL password if you've set already, else leave it empty and hit enter.\nIncase if root password for MySQL is not set, \n1. Enter this command in terminal:\n   ```bash\n   mysql -u root -p\n   ```\n2. Then enter the following command:(change the `root-password` parameter to your actual password which you want to set)\n   ```mysql\u003e\n   ALTER USER 'root'@'localhost' IDENTIFIED BY 'root-password';\n   ```   \n   \n\n### 3. Install Go Dependencies \n\nNavigate to the project directory and run the following command to install the required Go dependencies:\n```bash\ngo mod init hospital_db\ngo get fyne.io/fyne/v2\ngo get fyne.io/fyne/v2/internal/svg@v2.5.2\ngo get fyne.io/fyne/v2/internal/painter@v2.5.2\ngo get fyne.io/fyne/v2/storage/repository@v2.5.2\ngo get fyne.io/fyne/v2/lang@v2.5.2\ngo get fyne.io/fyne/v2/widget@v2.5.2\ngo get fyne.io/fyne/v2/internal/driver/glfw@v2.5.2\ngo get fyne.io/fyne/v2/app@v2.5.2\ngo get github.com/go-sql-driver/mysql\n```\n\n### 4. Run the Application\n1. After installing the dependencies, in the `hospital_app.go` file change the `\u003cmysql-UserName\u003e` to your actual MySQL username and `\u003cmysql-Password\u003e` to your actual MySQL password.\n2. After changing these two parameters, you can run the application with the following command:\n```bash\ngo run hospital_app.go\n```\n\n## Screenshots\n\n\u003cdiv style=\"display: flex; justify-content: space-around;\"\u003e\n  \u003cimg src=\"/screenshots/1.png\" alt=\"Image 1\" width=\"501\"\u003e\n  \u003cimg src=\"/screenshots/2.png\" alt=\"Image 2\" width=\"501\"\u003e\n  \u003cimg src=\"/screenshots/3.png\" alt=\"Image 3\" width=\"501\"\u003e\n  \u003cimg src=\"/screenshots/5.png\" alt=\"Image 2\" width=\"501\"\u003e\n  \u003cimg src=\"/screenshots/6.png\" alt=\"Image 3\" width=\"501\"\u003e\n  \u003cimg src=\"/screenshots/4.png\" alt=\"Image 1\"\u003e\n\u003c/div\u003e\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsaransridatha%2Fhospital_db","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsaransridatha%2Fhospital_db","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsaransridatha%2Fhospital_db/lists"}