{"id":18615083,"url":"https://github.com/andrewjbateman/angular-api-countries","last_synced_at":"2026-05-04T23:32:55.588Z","repository":{"id":37014680,"uuid":"184447975","full_name":"AndrewJBateman/angular-api-countries","owner":"AndrewJBateman","description":":clipboard: Angular app that displays details about countries using API data.","archived":false,"fork":false,"pushed_at":"2023-02-03T04:52:42.000Z","size":2724,"stargazers_count":0,"open_issues_count":6,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-17T01:34:33.945Z","etag":null,"topics":["angular","angular-material","angular-material15","angular15","api-rest","countries","country-data","css3","dev","html5","http-client","rxjs","rxjs6","typescript4"],"latest_commit_sha":null,"homepage":"https://AndrewJBateman.github.io/angular-api-countries/","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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-05-01T16:42:00.000Z","updated_at":"2023-05-28T23:51:25.000Z","dependencies_parsed_at":"2023-02-15T07:31:58.932Z","dependency_job_id":null,"html_url":"https://github.com/AndrewJBateman/angular-api-countries","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/AndrewJBateman/angular-api-countries","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndrewJBateman%2Fangular-api-countries","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndrewJBateman%2Fangular-api-countries/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndrewJBateman%2Fangular-api-countries/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndrewJBateman%2Fangular-api-countries/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AndrewJBateman","download_url":"https://codeload.github.com/AndrewJBateman/angular-api-countries/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndrewJBateman%2Fangular-api-countries/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262783378,"owners_count":23363530,"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","angular-material","angular-material15","angular15","api-rest","countries","country-data","css3","dev","html5","http-client","rxjs","rxjs6","typescript4"],"created_at":"2024-11-07T03:28:05.014Z","updated_at":"2026-05-04T23:32:50.569Z","avatar_url":"https://github.com/AndrewJBateman.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# :zap: Angular Api Countries\n\n* Angular dev app that displays details about countries using data from the [Rest Countries](https://restcountries.eu/) API.\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-api-countries?style=plastic)\n![GitHub pull requests](https://img.shields.io/github/issues-pr/AndrewJBateman/angular-api-countries?style=plastic)\n![GitHub Repo stars](https://img.shields.io/github/stars/AndrewJBateman/angular-api-countries?style=plastic)\n![GitHub last commit](https://img.shields.io/github/last-commit/AndrewJBateman/angular-api-countries?style=plastic)\n\n## :page_facing_up: Table of contents\n\n* [:zap: Angular Api Countries](#zap-angular-api-countries)\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* Uses the model-view-viewmodel (MVVM) of Angular to bind the remote data that is stored in objects in the application template. The component plays the part of the controller/viewmodel. The template represents the view.\n* Basic app that gets API country data and displays it in a flex grid\n\n## :camera: Screenshots\n\n![Example screenshot](./img/apigrid.png).\n\n## :signal_strength: Technologies\n\n* [Angular v15](https://angular.io/)\n* [Angular HttpClient](https://angular.io/guide/http) module used to communicate with back-end services via the XMLHttpRequest browser interface.\n* [Angular KeyValuePipe](https://angular.io/api/common/KeyValuePipe) to transform Object or Map into an array of key value pairs. Output array ordered by keys.\n* [RxJS Library v7](https://angular.io/guide/rx-library) used to [subscribe](http://reactivex.io/documentation/operators/subscribe.html) to the API data [observables](http://reactivex.io/documentation/observable.html).\n* [Angular Material Design v15](https://material.angular.io/) used for the user interface, especially [mat-menu](https://material.angular.io/components/menu/overview), [mat-sidenav](https://material.angular.io/components/sidenav/overview), [mat-card](https://material.angular.io/components/card/overview) etc.\n* [restcounties API v3](https://restcountries.com/) information about countries via a RESTful API. Note their latest endpoints used - they changed from .eu to .com and REST JSON format changed\n\n## :floppy_disk: Setup\n\n* Run `npm i` to install dependencies.\n* Run `ng serve` for a dev server. Navigate to `http://localhost:4200/`. The app does automatically reload if you change any of the source files.\n* Run `npm run build` to create build files in `docs` folder. These will be deployed to github-pages. You need to copy the `index.html` file in the `docs` folder and paste it in the same folder with a new name of `404.html`.\n\n## :computer: Code Examples\n\n* extract from `data.service.ts` to get country data using Angular httpClient module.\n\n```typescript\n  // function to get info for all countries\ngetCountries() {\n  return this.http\n    .get(`${this.API_URL}/all`)\n    .pipe(map(\n      result =\u003e this.result = result\n    ));\n}\n```\n\n## :cool: Features\n\n* Angular httpClient used to get data from an API - no API key is required.\n\n## :clipboard: Status \u0026 To-Do List\n\n* Status: Working. Menu links do not work\n* To-Do: Add user search of country etc. Menu\n\n## :clap: Inspiration\n\n* [Stackoverflow: access key and value of object using *ngFor](https://stackoverflow.com/questions/35534959/access-key-and-value-of-object-using-ngfor) to access key-value pairs from API data for currencies etc.\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-api-countries","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fandrewjbateman%2Fangular-api-countries","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandrewjbateman%2Fangular-api-countries/lists"}