{"id":18708922,"url":"https://github.com/reconfortdev/rxjs-error-handling","last_synced_at":"2025-07-29T23:32:40.915Z","repository":{"id":256553656,"uuid":"852222847","full_name":"ReconfortDev/Rxjs-Error-handling","owner":"ReconfortDev","description":null,"archived":false,"fork":false,"pushed_at":"2024-09-11T12:57:35.000Z","size":133,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-19T08:11:23.893Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/ReconfortDev.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-09-04T12:47:04.000Z","updated_at":"2024-09-11T12:59:52.000Z","dependencies_parsed_at":"2024-09-11T17:23:03.009Z","dependency_job_id":null,"html_url":"https://github.com/ReconfortDev/Rxjs-Error-handling","commit_stats":null,"previous_names":["reconfortdev/rxjs-error-handling"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ReconfortDev/Rxjs-Error-handling","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ReconfortDev%2FRxjs-Error-handling","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ReconfortDev%2FRxjs-Error-handling/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ReconfortDev%2FRxjs-Error-handling/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ReconfortDev%2FRxjs-Error-handling/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ReconfortDev","download_url":"https://codeload.github.com/ReconfortDev/Rxjs-Error-handling/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ReconfortDev%2FRxjs-Error-handling/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267780045,"owners_count":24143201,"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-07-29T02:00:12.549Z","response_time":2574,"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":[],"created_at":"2024-11-07T12:25:42.339Z","updated_at":"2025-07-29T23:32:40.838Z","avatar_url":"https://github.com/ReconfortDev.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Angular Post Handling App\n\n## Overview\n\nThis Angular application demonstrates error handling, retry logic, and asynchronous data fetching with RxJS. It simulates fetching posts from a remote API, handling different error scenarios, and displaying posts or error messages based on the outcome.\n\n## Live link\n[🌐Error handling live link](https://singular-donut-20c521.netlify.app/)\n\n\n## Features\n\n- **Simulated Data Fetching**: Fetch posts from a simulated endpoint.\n- **Error Handling**: Handle and display errors from the simulated API.\n- **Retry Mechanism**: Automatically retry failed requests.\n- **Loading State**: Display a loading indicator while data is being fetched.\n- **Post Display**: Show fetched posts in a user-friendly format.\n\n## Getting Started\n\n### Prerequisites\n\nEnsure you have the following installed:\n- [Node.js](https://nodejs.org/) (LTS version recommended)\n- [Angular CLI](https://angular.io/cli) (Install via npm with `npm install -g @angular/cli`)\n\n### Installation\n\n1. **Clone the Repository**\n\n   ```bash\n   git clone git@github.com:ReconfortDev/Rxjs-Error-handling.git\n   ```\n\n2. **Navigate to the Project Directory**\n\n   ```bash\n   cd Rxjs-Error-handling\n   ```\n\n3. **Install Dependencies**\n\n   ```bash\n   npm install\n   ```\n\n### Running the Application\n\nTo start the development server and view the application in your browser:\n\n```bash\nnpm start \n```\n\nOpen your browser and go to `http://localhost:4200` to see the app in action.\n\n### Usage\n\n1. **Get Posts**: Click the \"Get Post\" button to fetch posts from the simulated API.\n\n2. **View Loading State**: A loading indicator will be shown while the request is being processed.\n\n3. **Retry Logic**: If the request fails, the application will retry fetching posts up to three times.\n\n4. **Error Messages**: If errors occur, appropriate error messages will be displayed.\n\n### API Simulation\n\nThe application simulates data fetching with a random outcome. Possible responses include:\n- A simulated network error.\n- An empty array.\n- Actual data from the JSONPlaceholder API.\n\n\n## Project Structure\n\n- **src/app**: Contains the main application code.\n  - **components**: Includes models and other shared components.\n  - **service**: Contains the `PostServiceService` used for fetching posts.\n  - **app.component.ts**: The main component managing the posts and error handling.\n  - **app.component.html**: The template for displaying posts and error messages.\n  - **app.component.css**: The styles for the main component.\n\n## Acknowledgments\n\n- [Angular](https://angular.io/)\n- [RxJS](https://rxjs.dev/)\n- [JSONPlaceholder](https://jsonplaceholder.typicode.com/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freconfortdev%2Frxjs-error-handling","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Freconfortdev%2Frxjs-error-handling","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freconfortdev%2Frxjs-error-handling/lists"}