{"id":21625306,"url":"https://github.com/ohcnetwork/care_fe","last_synced_at":"2025-05-14T13:06:15.008Z","repository":{"id":36951658,"uuid":"249027166","full_name":"ohcnetwork/care_fe","owner":"ohcnetwork","description":"Care is a Digital Public Good enabling TeleICU \u0026 Decentralised Administration of Healthcare Capacity across States.","archived":false,"fork":false,"pushed_at":"2025-05-13T08:19:17.000Z","size":52333,"stargazers_count":511,"open_issues_count":186,"forks_count":785,"subscribers_count":21,"default_branch":"develop","last_synced_at":"2025-05-13T08:25:38.389Z","etag":null,"topics":["digital-public-goods","hacktoberfest","healthcare","hmis"],"latest_commit_sha":null,"homepage":"https://care.ohc.network","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ohcnetwork.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2020-03-21T17:32:30.000Z","updated_at":"2025-05-12T15:53:58.000Z","dependencies_parsed_at":"2023-11-16T12:28:38.821Z","dependency_job_id":"abddcb22-252b-4889-b2f3-2d50996f6a36","html_url":"https://github.com/ohcnetwork/care_fe","commit_stats":{"total_commits":5476,"total_committers":230,"mean_commits":"23.808695652173913","dds":0.8873265157048941,"last_synced_commit":"37dce64eb66d65906f2396742f1f6ce2d7ac6b83"},"previous_names":["ohcnetwork/care_fe"],"tags_count":194,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ohcnetwork%2Fcare_fe","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ohcnetwork%2Fcare_fe/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ohcnetwork%2Fcare_fe/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ohcnetwork%2Fcare_fe/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ohcnetwork","download_url":"https://codeload.github.com/ohcnetwork/care_fe/tar.gz/refs/heads/develop","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254149948,"owners_count":22022851,"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":["digital-public-goods","hacktoberfest","healthcare","hmis"],"created_at":"2024-11-25T01:08:42.651Z","updated_at":"2025-05-14T13:06:14.964Z","avatar_url":"https://github.com/ohcnetwork.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ca href=\"https://ohc.network/\"\u003e\n  \u003cp align=\"center\"\u003e\n    \u003cpicture\u003e\n      \u003csource media=\"(prefers-color-scheme: dark)\" srcset=\"https://raw.githubusercontent.com/ohcnetwork/branding/refs/heads/main/Care/SVG/Logo/Care-Logo_gradient_mark_with_white_wordmark.svg\"\u003e\n      \u003cimg alt=\"CARE Logo\" src=\"https://raw.githubusercontent.com/ohcnetwork/branding/refs/heads/main/Care/SVG/Logo/Care-Logo_gradient_mark_with_dark_wordmark.svg\" width=\"400\"\u003e\n    \u003c/picture\u003e\n    \u003cbr\u003e\n    \u003ca href=\"https://digitalpublicgoods.net/r/care\"\u003e\u003cimg src=\"https://img.shields.io/badge/Verified-DPG%20(Since%20%202021)-3333AB?logo=data:image/svg%2bxml;base64,PHN2ZyB3aWR0aD0iMzEiIGhlaWdodD0iMzMiIHZpZXdCb3g9IjAgMCAzMSAzMyIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTE0LjIwMDggMjEuMzY3OEwxMC4xNzM2IDE4LjAxMjRMMTEuNTIxOSAxNi40MDAzTDEzLjk5MjggMTguNDU5TDE5LjYyNjkgMTIuMjExMUwyMS4xOTA5IDEzLjYxNkwxNC4yMDA4IDIxLjM2NzhaTTI0LjYyNDEgOS4zNTEyN0wyNC44MDcxIDMuMDcyOTdMMTguODgxIDUuMTg2NjJMMTUuMzMxNCAtMi4zMzA4MmUtMDVMMTEuNzgyMSA1LjE4NjYyTDUuODU2MDEgMy4wNzI5N0w2LjAzOTA2IDkuMzUxMjdMMCAxMS4xMTc3TDMuODQ1MjEgMTYuMDg5NUwwIDIxLjA2MTJMNi4wMzkwNiAyMi44Mjc3TDUuODU2MDEgMjkuMTA2TDExLjc4MjEgMjYuOTkyM0wxNS4zMzE0IDMyLjE3OUwxOC44ODEgMjYuOTkyM0wyNC44MDcxIDI5LjEwNkwyNC42MjQxIDIyLjgyNzdMMzAuNjYzMSAyMS4wNjEyTDI2LjgxNzYgMTYuMDg5NUwzMC42NjMxIDExLjExNzdMMjQuNjI0MSA5LjM1MTI3WiIgZmlsbD0id2hpdGUiLz4KPC9zdmc+Cg==\" alt=\"DPG Badge\"\u003e\u003c/a\u003e\n  \u003c/p\u003e\n\u003c/a\u003e\n\u003cp align=\"center\"\u003e\u003cb\u003eOur goal is to continuously improve the quality and accessibility of public healthcare services using digital tools.\u003c/b\u003e\u003c/p\u003e\n\u003ch2\u003e\u003c/h2\u003e\n\u003ch3 align=\"center\"\u003e\u003ca href=\"https://care.ohc.network\" target=\"_blank\"\u003e🚀 Staging Deployment\u003c/a\u003e\u003c/h3\u003e\n\u003ccenter\u003e\n\n[![Netlify Status](https://api.netlify.com/api/v1/badges/de76351f-b1f0-4bf8-8445-d9faf6391b13/deploy-status)](https://app.netlify.com/sites/care-ohc/deploys)\n\n\u003c/center\u003e\n\u003cp align=\"center\"\u003eAuto deployed to \u003ca href=\"https://care.ohc.network/\"\u003ecare.ohc.network\u003c/a\u003e for \u003ccode\u003edevelop\u003c/code\u003e branch. All pull requests have preview builds powered by \u003ca href=\"https://netlify.com\"\u003eNetlify\u003c/a\u003e.\u003c/p\u003e\n\n[![](https://sourcerer.io/fame/tomahawk-pilot/ohcnetwork/care_fe/images/0)](https://sourcerer.io/fame/tomahawk-pilot/ohcnetwork/care_fe/links/0)[![](https://sourcerer.io/fame/tomahawk-pilot/ohcnetwork/care_fe/images/1)](https://sourcerer.io/fame/tomahawk-pilot/ohcnetwork/care_fe/links/1)[![](https://sourcerer.io/fame/tomahawk-pilot/ohcnetwork/care_fe/images/2)](https://sourcerer.io/fame/tomahawk-pilot/ohcnetwork/care_fe/links/2)[![](https://sourcerer.io/fame/tomahawk-pilot/ohcnetwork/care_fe/images/3)](https://sourcerer.io/fame/tomahawk-pilot/ohcnetwork/care_fe/links/3)[![](https://sourcerer.io/fame/tomahawk-pilot/ohcnetwork/care_fe/images/4)](https://sourcerer.io/fame/tomahawk-pilot/ohcnetwork/care_fe/links/4)[![](https://sourcerer.io/fame/tomahawk-pilot/ohcnetwork/care_fe/images/5)](https://sourcerer.io/fame/tomahawk-pilot/ohcnetwork/care_fe/links/5)[![](https://sourcerer.io/fame/tomahawk-pilot/ohcnetwork/care_fe/images/6)](https://sourcerer.io/fame/tomahawk-pilot/ohcnetwork/care_fe/links/6)[![](https://sourcerer.io/fame/tomahawk-pilot/ohcnetwork/care_fe/images/7)](https://sourcerer.io/fame/tomahawk-pilot/ohcnetwork/care_fe/links/7)\n\n![Code scanning - action](https://github.com/ohcnetwork/care_fe/workflows/Code%20scanning%20-%20action/badge.svg)\n![OSSAR](https://github.com/ohcnetwork/care_fe/workflows/OSSAR/badge.svg)\n[![Cypress Tests](https://img.shields.io/endpoint?url=https://cloud.cypress.io/badge/simple/wf7d2m/develop\u0026style=flat\u0026logo=cypress)](https://cloud.cypress.io/projects/wf7d2m/runs)\n![Staging Release](https://github.com/ohcnetwork/care_fe/workflows/CARE%20Develop%20Registry/badge.svg)\n![Production Release](https://github.com/ohcnetwork/care_fe/workflows/Production%20Release/badge.svg)\n[![Codacy Badge](https://api.codacy.com/project/badge/Grade/200482ab117e4b5397ff3f5ae5719aa2)](https://www.codacy.com/gh/ohcnetwork/care_fe?utm_source=github.com\u0026utm_medium=referral\u0026utm_content=ohcnetwork/care_fe\u0026utm_campaign=Badge_Grade)\n[![Maintainability](https://api.codeclimate.com/v1/badges/f1438f693aa459805301/maintainability)](https://codeclimate.com/github/ohcnetwork/care_fe/maintainability)\n\n## Getting started\n\n- 💬 Comment on the issue if you are willing to take it up, and link the pull request with the issue.\n- 🏷️ Tag `@ohcnetwork/care-fe-code-reviewers` for faster resolution.\n- 📸 Attach screenshots in the pull requests showing the changes made in the UI.\n\n#### Install the required dependencies\n\n```sh\nnpm install\n```\n\n#### 🏃 Run the app in development mode\n\n```sh\nnpm run dev\n```\n\nOnce the development server has started, open [localhost:4000](http://localhost:4000) in your browser. The page will be automatically reloaded when you make edits and save. You will also see any lint errors in the console.\n\n#### 🔑 API Credentials for care.ohc.network\n\nAuthenticate to care.ohc.network with any of the following credentials\n\n```yaml\n# Doctor at Aluva PHC\n- username: care-doctor\n  password: Ohcn@123\n\n# Staff at Aluva PHC\n- username: care-staff\n  password: Ohcn@123\n\n# Admin at Aluva PHC\n- username: care-nurse\n  password: Ohcn@123\n\n# Facility Admin at Aluva PHC\n- username: care-fac-admin\n  password: Ohcn@123\n\n# Volunteer at Aluva PHC\n- username: care-volunteer\n  password: Ohcn@123\n\n# Administrator\n- username: care-admin\n  password: Ohcn@123\n```\n\n#### 📱 Patient Login in Staging\n\nFor patient login via phone number:\n\n- In production, an actual SMS with OTP is sent to the provided phone number\n- In staging environment, to save costs, SMS messages are not actually sent\n- For testing purposes in staging, use the hardcoded OTP: `45612`\n\n#### Contributing to CARE\n\n- Create a branch with branch name of the format `issues/{issue#}/{short-name}` (example `issues/7001/edit-prescriptions`) from the latest [`develop`](https://github.com/ohcnetwork/care_fe/tree/develop) branch when starting to work on an issue.\n- Once the changes are pushed to the branch, make a pull request with a meaningful title (example: \"💊 Adds support for editing prescriptions\" #6369)\n- Ensure the issue number is mentioned in the PR with a closing tag by following the PR body template. (Refer: [Linking a pull request to an issue](https://docs.github.com/en/issues/tracking-your-work-with-issues/linking-a-pull-request-to-an-issue#linking-a-pull-request-to-an-issue-using-a-keyword))\n- Once the code review is done, the PR will be marked with a \"Needs Testing\" label where it'll be queued for QA testing.\n- Once tested, the PR would be marked with a \"Tested\" label and would be queued for merge.\n\n### Translations\n\nAll strings must be encased in i18n translations. New translation strings must be specified in `src`-\u003e`Locale`-\u003e`en`. Do not add translations for languages other than english through pull requests. Other language translations can be contributed through [Crowdin](https://crowdin.com/project/ohccarefe)\n\n### Testing\n\nTo ensure the quality of our pull requests, we use a variety of tools:\n\n- **Automated E2E Testing:** We use Cypress for end-to-end testing to automatically verify the functionality and performance of our code.\n- **Manual Real Device Testing:** We use BrowserStack to manually test our code on real devices, ensuring compatibility and functionality across different platforms and browsers.\n\n#### 🧪 Run cypress tests\n\nTo run cypress tests locally, you'll need to setup the backend to run locally and load dummy data required for cypress to the database. See [docs](https://github.com/ohcnetwork/care#self-hosting).\n\nOnce backend is running locally, you'll have to ensure your local front-end is connected to local backend, by setting the `REACT_CARE_API_URL` env.\n\n```env\n#.env\nREACT_CARE_API_URL=http://127.0.0.1:9000\n```\n\nOnce done, start the development server by running\n\n```sh\nnpm run dev\n```\n\nOnce development server is running, then run the cypress tests in either of the ways described below.\n\n```sh\nnpm run cypress:run        # To run all tests in headless mode.\n```\n\n```sh\nnpm run cypress:run:gui    # To run all tests in headed mode.\n```\n\n```sh\nnpm run cypress:open       # To debug and run tests individually.\n```\n\n- Failed test screenshots are saved in `cypress/screenshots`\n- All test videos are saved in `cypress/videos`\n\n## 📖 Documentations\n\n- [CARE Documentation](https://docs.ohc.network/docs/care)\n- [Swagger API Documentation](https://careapi.ohc.network/swagger/)\n- [Testing Documentation](https://docs.coronasafe.network/care-testing-documentation/)\n\n## 🚀 Production\n\n#### Build the app for production\n\n```sh\nnpm run build\n```\n\nBuilds the app for production to the `build` folder. It correctly bundles React in production mode and optimizes the build for the best performance.\n\n#### Start a production `http-server`\n\n```sh\nnpm run preview\n```\n\nStarts a production http-server in local to run the project with Service worker.\nThe build is minified and the filenames include the hashes.\n\n**🚀 Your app is ready to be deployed!**\n\n\u003cdiv align=\"center\"\u003e\n\n\u003cbr /\u003e\n\u003ca href=\"https://digitalpublicgoods.net/r/care\" target=\"_blank\" rel=\"noopener noreferrer\"\u003e\u003cimg src=\"https://github.com/DPGAlliance/dpg-resources/blob/main/docs/assets/dpg-badge.png?raw=true\" width=\"100\" alt=\"Digital Public Goods Badge\"\u003e\u003c/a\u003e\n\n\u003c/div\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fohcnetwork%2Fcare_fe","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fohcnetwork%2Fcare_fe","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fohcnetwork%2Fcare_fe/lists"}