{"id":18614795,"url":"https://github.com/andrewjbateman/angular-api-project","last_synced_at":"2025-04-11T00:30:56.148Z","repository":{"id":38190558,"uuid":"181870236","full_name":"AndrewJBateman/angular-api-project","owner":"AndrewJBateman","description":":clipboard: App using a DataService with httpClient to get json data from an external API.","archived":false,"fork":false,"pushed_at":"2023-10-19T11:18:17.000Z","size":2551,"stargazers_count":3,"open_issues_count":3,"forks_count":5,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-25T06:51:15.562Z","etag":null,"topics":["angular","angular16","api","api-json","dataservice","form-builder","form-validation","html5","httpclient","json-api","json-data","observable-streams","rxjs","rxjs-observable","rxjs-subscriptions","rxjs7","scss-styles","typescript4"],"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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-04-17T10:37:43.000Z","updated_at":"2024-09-18T11:37:17.000Z","dependencies_parsed_at":"2024-11-07T03:40:54.733Z","dependency_job_id":null,"html_url":"https://github.com/AndrewJBateman/angular-api-project","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-api-project","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndrewJBateman%2Fangular-api-project/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndrewJBateman%2Fangular-api-project/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndrewJBateman%2Fangular-api-project/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AndrewJBateman","download_url":"https://codeload.github.com/AndrewJBateman/angular-api-project/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248322228,"owners_count":21084333,"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","api","api-json","dataservice","form-builder","form-validation","html5","httpclient","json-api","json-data","observable-streams","rxjs","rxjs-observable","rxjs-subscriptions","rxjs7","scss-styles","typescript4"],"created_at":"2024-11-07T03:27:00.718Z","updated_at":"2025-04-11T00:30:52.134Z","avatar_url":"https://github.com/AndrewJBateman.png","language":"TypeScript","readme":"# :zap: Angular API Project\n\n* App using a DataService with httpClient to get a JSON Observable data stream from an API and display it using the Angular async pipe.\n* App also submits a simple typed Contact form.\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-project?style=plastic)\n![GitHub pull requests](https://img.shields.io/github/issues-pr/AndrewJBateman/angular-api-project?style=plastic)\n![GitHub Repo stars](https://img.shields.io/github/stars/AndrewJBateman/angular-api-project?style=plastic)\n![GitHub last commit](https://img.shields.io/github/last-commit/AndrewJBateman/angular-api-project?style=plastic)\n\n## :page_facing_up: Table of contents\n\n* [:zap: Angular API Project](#zap-angular-api-project)\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* Routing module allows user to navigate between Home, About and Contact pages.\n* API json/image data displayed: firstname, lastname, email and avatar.\n* Angular FormBuilder used to allow user to submit a form with name and message. Form uses validation.\n* Styling is pure SCSS\n\n## :camera: Screenshots\n\n![Example screenshot](./imgs/home.png).\n![Example screenshot](./imgs/contact-form.png).\n\n## :signal_strength: Technologies\n\n* [Angular v16](https://angular.io/)\n* [RxJS Library v7](https://angular.io/guide/rx-library) used to [subscribe](http://reactivex.io/documentation/operators/subscribe.html) to the API data [observable](http://reactivex.io/documentation/observable.html).\n* [The HttpClient in @angular/common/http](https://angular.io/guide/http) offers a simplified client HTTP API for Angular applications that rests on the XMLHttpRequest interface exposed by browsers.\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 will automatically reload if you change any of the source files.\n\n## :computer: Code Examples\n\n* `data.service.ts` ES6 arrow function to return observable from API using `apiResponse` interface\n\n```typescript\ngetUsers = (): Observable\u003capiResponse\u003e =\u003e {\n  return this.http.get\u003capiResponse\u003e(\"https://reqres.in/api/users\");\n}\n```\n\n* `home.component.ts` ng init. function to get observable data for the template async pipe - note: using an ES6 arrow function here would result in nothing being displayed, due the use of 'this'\n\n```typescript\nngOnInit () {\n  this.users$ = this.data.getUsers();\n};\n```\n\n## :cool: Features\n\n* API web link could be changed to get different and more complex data.\n\n## :clipboard: Status \u0026 To-Do List\n\n* Status: Working.\n* To-Do: Nothing.\n\n## :clap: Inspiration\n\n* This was originally a Gary Simon tutorial but it is no longer available on-line. Here is a link to his website: [designcourse.com](https://designcourse.com/) - worth a look\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@gmail.com`\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandrewjbateman%2Fangular-api-project","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fandrewjbateman%2Fangular-api-project","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandrewjbateman%2Fangular-api-project/lists"}