{"id":28542922,"url":"https://github.com/maureen-keter/testing-policy-backend","last_synced_at":"2025-08-06T15:36:21.826Z","repository":{"id":283629127,"uuid":"952390690","full_name":"Maureen-keter/testing-policy-backend","owner":"Maureen-keter","description":"Backend insurance testing policy with crud operations","archived":false,"fork":false,"pushed_at":"2025-03-21T11:42:21.000Z","size":28,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-19T14:06:39.136Z","etag":null,"topics":["flask-api","flask-restful","flask-sqlalchemy","python","sqlite"],"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/Maureen-keter.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":"2025-03-21T07:50:06.000Z","updated_at":"2025-03-21T11:42:24.000Z","dependencies_parsed_at":"2025-03-21T09:22:01.829Z","dependency_job_id":"5d999e62-6fe9-4d25-929d-bc91159efd43","html_url":"https://github.com/Maureen-keter/testing-policy-backend","commit_stats":null,"previous_names":["maureen-keter/testing-policy-backend"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Maureen-keter/testing-policy-backend","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Maureen-keter%2Ftesting-policy-backend","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Maureen-keter%2Ftesting-policy-backend/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Maureen-keter%2Ftesting-policy-backend/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Maureen-keter%2Ftesting-policy-backend/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Maureen-keter","download_url":"https://codeload.github.com/Maureen-keter/testing-policy-backend/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Maureen-keter%2Ftesting-policy-backend/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269105260,"owners_count":24360716,"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-06T02:00:09.910Z","response_time":99,"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":["flask-api","flask-restful","flask-sqlalchemy","python","sqlite"],"created_at":"2025-06-09T21:07:48.591Z","updated_at":"2025-08-06T15:36:21.810Z","avatar_url":"https://github.com/Maureen-keter.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Insurance Policy Management System - Backend\n\nThis is the backend for the **Insurance Policy Management System**, designed to handle API requests, database operations, and business logic for managing insurance policies. The backend is built with **Python** and **Flask**, with data persistence handled via **SQLite** (or your chosen database).\n\n## Features\n\n- Create, read, update, and delete (CRUD) operations for insurance policies.\n- Basic search and filter functionality.\n- RESTful API design for seamless integration with the frontend.\n\n## Tech Stack\n\n- **Flask**: python runtime for the server-side.\n- **SQLite**: Database for data persistence.\n- \n\n---\n\n## Table of Contents\n\n1. Installation\n2. Environment Variables\n3. API Endpoints\n4. Folder Structure\n5. Usage\n6. Contributing\n7. License\n\n---\n\n## Installation\n\n1. Clone the repository:\n   ```bash\n   git clone https://github.com/yourusername/insurance-management-backend.git\n   cd insurance-management-backend\n   ```\n\n2. Install dependencies:\n   ```bash\n   npm install\n   ```\n\n3. Set up the database:\n   - Install SQLite\n\n4. Start the server:\n   ```bash\n   flask run\n   ```\n\n## API Endpoints\n\n| HTTP Method | Endpoint          | Description                     \n|-------------|-------------------|-----------------------------------\n| GET         | `/api/policies`  | Fetch all insurance policies     \n| GET         | `/api/policies/:id` | Fetch a single policy by ID      \n| POST        | `/api/policies`  | Create a new insurance policy    \n| PATCH        | `/api/policies/:id` | Update an existing policy        \n| DELETE      | `/api/policies/:id` | Delete an insurance policy\n---\n\n## Folder Structure\n\n```\ninsurance-management-backend/\n├── src/\n│   ├── models/          # Database schemas (e.g., Policy model)\n│   ├── routes/          # API route definitions\n│   ├── server.js        # Main server file\n├── package.json         # Project dependencies and scripts\n├── README.md            # Project documentation\n└── .gitignore           # Ignored files for version control\n```\n\n---\n\n## Usage\n\n1. Start the backend server:\n   ```bash\n   npm start\n   ```\n\n2. Access the API via `http://localhost:5000/api`.\n\n3. Test endpoints using tools like **Postman** or **cURL**.\n\n---\n\n## Contributing\n\nWe welcome contributions to improve this project! Please follow these steps:\n\n1. Fork the repository.\n2. Create a new feature branch:\n   ```bash\n   git checkout -b feature-name\n   ```\n3. Commit your changes:\n   ```bash\n   git commit -m \"Add feature-name\"\n   ```\n4. Push to your branch:\n   ```bash\n   git push origin feature-name\n   ```\n5. Open a pull request.\n\n---\n\n## License\n\nThis project is licensed under the [MIT License](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaureen-keter%2Ftesting-policy-backend","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmaureen-keter%2Ftesting-policy-backend","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaureen-keter%2Ftesting-policy-backend/lists"}