{"id":18615077,"url":"https://github.com/andrewjbateman/angular-bootstrap-info","last_synced_at":"2026-04-15T16:01:55.407Z","repository":{"id":50680822,"uuid":"359237036","full_name":"AndrewJBateman/angular-bootstrap-info","owner":"AndrewJBateman","description":":clipboard: Angular app to get API data and display it using Bootstrap styles","archived":false,"fork":false,"pushed_at":"2023-04-12T12:54:06.000Z","size":2587,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2024-12-27T02:45:26.748Z","etag":null,"topics":["angular","angular16","bootstrap","bootstrap5","json-api","news","rest-api","rxjs","rxjs7"],"latest_commit_sha":null,"homepage":"","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/AndrewJBateman.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-04-18T19:40:24.000Z","updated_at":"2023-04-12T12:53:40.000Z","dependencies_parsed_at":"2023-01-23T13:30:44.457Z","dependency_job_id":null,"html_url":"https://github.com/AndrewJBateman/angular-bootstrap-info","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndrewJBateman%2Fangular-bootstrap-info","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndrewJBateman%2Fangular-bootstrap-info/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndrewJBateman%2Fangular-bootstrap-info/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndrewJBateman%2Fangular-bootstrap-info/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AndrewJBateman","download_url":"https://codeload.github.com/AndrewJBateman/angular-bootstrap-info/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239406495,"owners_count":19633025,"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":["angular","angular16","bootstrap","bootstrap5","json-api","news","rest-api","rxjs","rxjs7"],"created_at":"2024-11-07T03:28:04.031Z","updated_at":"2025-11-03T03:30:34.837Z","avatar_url":"https://github.com/AndrewJBateman.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# :zap: Angular Bootstrap Info\n\n* Angular app to show [mediastack Global News Data API](https://mediastack.com) data in a Bootstrap card array\n* **Note:** to open web links in a new window use: _ctrl+click on link_\n\n![GitHub repo size](https://img.shields.io/github/repo-size/AndrewJBateman/angular-bootstrap-info?style=plastic)\n![GitHub pull requests](https://img.shields.io/github/issues-pr/AndrewJBateman/angular-bootstrap-info?style=plastic)\n![GitHub Repo stars](https://img.shields.io/github/stars/AndrewJBateman/angular-bootstrap-info?style=plastic)\n![GitHub last commit](https://img.shields.io/github/last-commit/AndrewJBateman/angular-bootstrap-info?style=plastic)\n\n## :page_facing_up: Table of contents\n\n* [:zap: Angular Bootstrap Info](#zap-angular-bootstrap-info)\n  * [:page\\_facing\\_up: Table of contents](#page_facing_up-table-of-contents)\n  * [:books: General info](#books-general-info)\n  * [:camera: Screenshots](#camera-screenshots)\n  * [:signal\\_strength: Technologies](#signal_strength-technologies)\n  * [:floppy\\_disk: Setup](#floppy_disk-setup)\n  * [:computer: Code Examples](#computer-code-examples)\n  * [:cool: Features](#cool-features)\n  * [:clipboard: Status \\\u0026 To-Do List](#clipboard-status--to-do-list)\n  * [:clap: Inspiration](#clap-inspiration)\n  * [:file\\_folder: License](#file_folder-license)\n  * [:envelope: Contact](#envelope-contact)\n\n## :books: General info\n\n* Free news from the [mediastack REST API](https://mediastack.com) supplied in JSON format\n* take(1), tap() and map() methods used to extract API data.\n* Angular Async subscribe pipe used directly with the news response observable in the html template as it is auto-unsubscribing, instead of an observable subscription.\n\n## :camera: Screenshots\n\n![Example screenshot](./imgs/news.png)\n\n## :signal_strength: Technologies\n\n* [Angular v16](https://angular.io/)\n* [Reactive Extensions Library for Javascript RXJS v7](https://rxjs-dev.firebaseapp.com/)\n* [Bootstrap v5](https://getbootstrap.com/docs/5.0/getting-started/introduction/)\n* [Live Server](https://www.npmjs.com/package/live-server)\n\n## :floppy_disk: Setup\n\n* Install dependencies using `npm i`\n* Get an API key using [Mediastack Quickstart](https://mediastack.com/quickstart)\n* Add API_KEY to `environment.ts` files\n* Run `ng serve` for a dev server. Navigate to `http://localhost:4200/`. The app will automatically reload if you change any of the source files. Note: This will not work with Mediastack due to restrictions using http. See this [Stackoverflow for ways around HTTP restriction](https://stackoverflow.com/questions/75218904/aviationstack-api-error-https-encryption-not-supported). I created a build file then opened index.html using [Live Server](https://www.npmjs.com/package/live-server).\n* Run `ng build` to build the project. The build artifacts will be stored in the `dist/` directory. Use the `--prod` flag for a production build.\n* Run `ng update` to update Angular\n\n## :computer: Code Examples\n\n* `info.service.ts` HTTP request returns an observable data stream that I tapped using console.log\n\n```typescript\n    return this.http.get\u003cApiResponse\u003e(apiUrl).pipe(\n      take(1),\n      map(res =\u003e res['data']),\n      catchError(err =\u003e {\n        throw 'an error occured: ' + err;\n      }),\n    );\n```\n\n## :cool: Features\n\n* Use of Angular async pipe in HTML template reduces amount of code and auto-unsubscribes from the news data observable\n\n## :clipboard: Status \u0026 To-Do List\n\n* Status: Working\n* To-Do: Add transloco, images? Change API? Add pagination??. Add click to data detail page.\n\n## :clap: Inspiration\n\n* [mediastack REST API](https://mediastack.com/documentation)\n* [Stackoverflow for ways around HTTP restriction](https://stackoverflow.com/questions/75218904/aviationstack-api-error-https-encryption-not-supported)\n\n## :file_folder: License\n\n* This project is licensed under the terms of the MIT license.\n\n## :envelope: Contact\n\n* Repo created by [ABateman](https://github.com/AndrewJBateman), email: gomezbateman@yahoo.com\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandrewjbateman%2Fangular-bootstrap-info","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fandrewjbateman%2Fangular-bootstrap-info","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandrewjbateman%2Fangular-bootstrap-info/lists"}