{"id":22957069,"url":"https://github.com/kenmwaura1/permit","last_synced_at":"2025-08-13T03:32:57.568Z","repository":{"id":240548908,"uuid":"802935549","full_name":"KenMwaura1/permit","owner":"KenMwaura1","description":"A Django project for managing a hospital system using Permit.io for authorization. The project includes a RESTful API for managing patients, doctors, and appointments. The API is secured using ABAC (Attribute-Based Access Control) and RBAC (Role-Based Access Control) policies. The project also includes a PDP (Policy Decision Point) microservice","archived":false,"fork":false,"pushed_at":"2025-07-23T20:22:27.000Z","size":74,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-07T21:07:44.632Z","etag":null,"topics":["django","django-rest-framework","permit","python"],"latest_commit_sha":null,"homepage":"","language":"Python","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/KenMwaura1.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","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},"funding":{"github":"KenMwaura1","ko_fi":"kenmwaura1","open_collective":"kenmwaura1","custom":["https://https://www.buymeacoffee.com/kenmwaura1"]}},"created_at":"2024-05-19T16:49:14.000Z","updated_at":"2025-07-23T20:22:26.000Z","dependencies_parsed_at":"2024-05-22T20:46:54.258Z","dependency_job_id":"acfaa42e-1408-4c66-9fdb-89686c94c8f7","html_url":"https://github.com/KenMwaura1/permit","commit_stats":null,"previous_names":["kenmwaura1/permit"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/KenMwaura1/permit","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KenMwaura1%2Fpermit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KenMwaura1%2Fpermit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KenMwaura1%2Fpermit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KenMwaura1%2Fpermit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/KenMwaura1","download_url":"https://codeload.github.com/KenMwaura1/permit/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KenMwaura1%2Fpermit/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270175826,"owners_count":24540093,"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","status":"online","status_checked_at":"2025-08-13T02:00:09.904Z","response_time":66,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["django","django-rest-framework","permit","python"],"created_at":"2024-12-14T17:15:12.434Z","updated_at":"2025-08-13T03:32:57.321Z","avatar_url":"https://github.com/KenMwaura1.png","language":"Python","funding_links":["https://github.com/sponsors/KenMwaura1","https://ko-fi.com/kenmwaura1","https://opencollective.com/kenmwaura1","https://https://www.buymeacoffee.com/kenmwaura1"],"categories":[],"sub_categories":[],"readme":"# Hospital System\n\n[![License](https://img.shields.io/badge/license-MIT-blue.svg)](https://opensource.org/licenses/MIT)\n\n## Description\n\nA Django project for managing a hospital system using [Permit.io](https://app.permit.io/) for authorization. The project includes a RESTful API for managing patients, doctors, and appointments. The API is secured using ABAC (Attribute-Based Access Control) and RBAC (Role-Based Access Control) policies. The project also includes a PDP (Policy Decision Point) microservice for evaluating access control policies. \n\n## Features\n\n- ABAC (Attribute-Based Access Control)\n- CRUD operations\n- RESTful API\n- User authentication\n- Role-based access control\n- ReBAC (Relationship-Based Access Control)\n\n## Installation\n\n1. Clone the repository: `git clone https://github.com/KenMwaura1/permit.git`\n2. Cd into the project directory: `cd hsystem`\n3. Create a virtual environment\n\n   `python3 -m venv venv`\n4. Activate virtualenv\n\n   `source venv/bin/activate`\n\n   For zsh users\n\n   `source venv/bin/activate.zsh`\n\n   For bash users\n\n   `source venv/bin/activate.bash`\n\n   For fish users\n\n   `source venv/bin/activate.fish`\n5. Install the dependencies: `pip install -r requirements.txt`\n6. Apply database migrations: `python manage.py migrate` or `python manage.py migrate --run-syncdb` || `python manage.py makemigrations hsystem` || `python manage.py migrate`\n7. Start the development server: `python manage.py runserver 5000`\n\n## Run your local PDP Microservice container\n\nIf you do not have Docker installed as of yet, click [here](https://docs.docker.com/get-docker/) to install Docker.\n\n### Pull the container \n\nRun the following command to pull the PDP Microservice container:\n\n```bash\ndocker pull permitio/pdp-v2:latest\n```\n\n### Run the container\n\nRemember to replace \u003cYOUR_API_KEY\u003e with the Secret Key you obtained from your dashboard.\n\n```bash\n\ndocker run -it -p 7766:7000 --env PDP_DEBUG=True --env PDP_API_KEY=\u003cYOUR_API_KEY\u003e permitio/pdp-v2:latest\n\n```\n\n## Usage\n\n1. Create a superuser: `python manage.py createsuperuser`\n2. Access the admin panel: `http://localhost:5000/admin/`\n3. Access the API: `http://localhost:5000/api/`\n4. Access the documentation: `http://localhost:5000/docs/` \n\n## Test the App\n\nRun the following command in a separate terminal to test whether the app is working as expected:\n\n```bash\ncurl -X GET http://localhost:5000/patients/1/\n\n```\n\n## Contributing\n\nContributions are welcome! Please follow the guidelines in [CONTRIBUTING.md](CONTRIBUTING.md).\n\n## License\n\nThis project is licensed under the [MIT License](LICENSE).\n\n## Contact\n\n- Author: Kennedy Mwaura\n\n- GitHub: [Your GitHub Profile](https://github.com/KenMwaura1)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkenmwaura1%2Fpermit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkenmwaura1%2Fpermit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkenmwaura1%2Fpermit/lists"}