{"id":43177622,"url":"https://github.com/harshitrajsinha/medi-go","last_synced_at":"2026-02-01T03:14:53.954Z","repository":{"id":293006223,"uuid":"982566298","full_name":"harshitrajsinha/medi-go","owner":"harshitrajsinha","description":"A hospital management system written in golang","archived":false,"fork":false,"pushed_at":"2025-09-14T09:56:00.000Z","size":246,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-14T10:22:52.795Z","etag":null,"topics":["docker","golang","healthcare","jwt-authentication","postgresql","redis"],"latest_commit_sha":null,"homepage":"https://medigo-frontend.vercel.app/","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/harshitrajsinha.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-05-13T04:51:44.000Z","updated_at":"2025-09-14T09:56:03.000Z","dependencies_parsed_at":"2025-07-19T05:14:09.424Z","dependency_job_id":"c1df4d10-bb7a-4a8f-a939-d3cb0a34680d","html_url":"https://github.com/harshitrajsinha/medi-go","commit_stats":null,"previous_names":["harshitrajsinha/medi-go"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/harshitrajsinha/medi-go","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/harshitrajsinha%2Fmedi-go","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/harshitrajsinha%2Fmedi-go/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/harshitrajsinha%2Fmedi-go/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/harshitrajsinha%2Fmedi-go/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/harshitrajsinha","download_url":"https://codeload.github.com/harshitrajsinha/medi-go/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/harshitrajsinha%2Fmedi-go/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28965647,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-01T02:14:24.993Z","status":"ssl_error","status_checked_at":"2026-02-01T02:13:55.706Z","response_time":56,"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":["docker","golang","healthcare","jwt-authentication","postgresql","redis"],"created_at":"2026-02-01T03:14:53.430Z","updated_at":"2026-02-01T03:14:53.949Z","avatar_url":"https://github.com/harshitrajsinha.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# MediGo - A Hospital Management System written in Go\n\n![frontend](./assets/images/frontend.png)\n\n🚀 A Golang web application that consists of a receptionist portal \u0026 doctor portal which performs the following tasks:\n\n- A **single login page** for doctor and receptionist - **Receptionists** can add a new patient record, update records and delete records. **Doctors** can view registered patient-related details and diagnose based on symptoms. **Pateints** can check their report based on unique token ID.\n- Google's Gemini is used as an **AI agent to diagnose and treat** based on symptoms.\n\n## Deployment links\n\nFrontend: https://medigo-frontend.vercel.app \\\nBackend: https://medigo-7u9l.onrender.com/\n\n## 👨‍🚀 Postman Collection Documentation\n\n[Postman Documentation URL](https://documenter.getpostman.com/view/40689865/2sB3HtHHfh)\n\n## ✨Features and Best Practices\n\n- **API Versioning** for backward compatibility\n- **Caching** - To reduce server load\n- **Dependency Injection** for modularity\n- **JWT Authentication** for security\n- **Persistant storage** using PostgreSQL\n- **Pagination** - To efficiently handle and deliver large datasets\n- **Rate Limit** - To protect server resources\n\n## 🛡️Security\n\n- **Rate Limit** to avoid API misuse and DDoS\n- **Origin validator** to avoid accessing API other than allowed origins, not even postman\n- **API read timeout** to avoid slowris attack\n- **Input validation** to avoid SQL injection\n\n## 📦 Tech Stack\n\n- **Backend** : Golang\n- **Frontend** : HTML/CSS/JavaScript\n- **AI Assitant**: Google's Gemini\n- **Caching** : Redis\n- **Database** : PostgreSQL\n- **Containerization** : Docker\n- **Deployment** : Vercel (Frontend) + Render (Backend)\n\n## How to run this application locally\n\n### 1. Prerequisites\n\nMake sure you have the `Docker Desktop` installed on your system:\n\n### 2. Clone the Repository\n\n```bash\ngit https://github.com/harshitrajsinha/medi-go.git\ncd medi-go\n```\n\n### 3. Set up environment variable\n\nCreate .env file in root directory\n\n```bash\nENVIRONMENT=production\n\n# For postgres docker image\nPOSTGRES_USER=postgres\nPOSTGRES_PASSWORD=yourstrongpassword\nPOSTGRES_DB=yourfavouritedbname\n\n# Data storage\nDB_USER=postgres\nDB_NAME=yourfavouritedbname\nDB_PASS=yourstrongpassword\nDB_PORT=5432\nDB_HOST=db\n\n# Neon cloud service (if configured)\nNEON_CONNSTR=neon_cloud_connection\n\nAPP_PORT=8000\n\nJWT_KEY = secretkeyword\n\nREDIS_HOST=redis\nREDIS_PORT=6379\n\nMONITOR_KEY=secretkeyfordbstats\n\n# Frontend application\nALLOWED_ORIGIN=http://localhost:3000\n```\n\n### 4. Run the application\n\nRun the following command in your bash terminal\n\n```bash\ndocker-compose up --build\n```\n\n## Receptionist Dashboard\n\n![Screenshot](./assets/images/Screenshot%202025-07-19%20185445.png)\n\n## Doctor Diagnosis (using Gemini AI)\n\n![Screenshot](./assets/images/Screenshot%202025-07-20%20145456.png)\n\n## Patient Report\n\n![Screenshot](./assets/images/Screenshot%202025-07-20%20145535.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fharshitrajsinha%2Fmedi-go","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fharshitrajsinha%2Fmedi-go","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fharshitrajsinha%2Fmedi-go/lists"}