{"id":18615036,"url":"https://github.com/andrewjbateman/angular-user-posts","last_synced_at":"2025-11-03T03:30:33.387Z","repository":{"id":38311231,"uuid":"148933303","full_name":"AndrewJBateman/angular-user-posts","owner":"AndrewJBateman","description":":clipboard: Angular app to get user details and posts from an external API.","archived":false,"fork":false,"pushed_at":"2023-06-29T13:00:26.000Z","size":4573,"stargazers_count":3,"open_issues_count":9,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-12-27T02:45:20.310Z","etag":null,"topics":["angular","angular-material","angular16","api","html5","material-ui","observables","rxjs","rxjs7","scss"],"latest_commit_sha":null,"homepage":"","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/AndrewJBateman.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":"2018-09-15T19:28:02.000Z","updated_at":"2024-02-03T06:00:04.000Z","dependencies_parsed_at":"2023-02-15T08:16:48.607Z","dependency_job_id":null,"html_url":"https://github.com/AndrewJBateman/angular-user-posts","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-user-posts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndrewJBateman%2Fangular-user-posts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndrewJBateman%2Fangular-user-posts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndrewJBateman%2Fangular-user-posts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AndrewJBateman","download_url":"https://codeload.github.com/AndrewJBateman/angular-user-posts/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239406450,"owners_count":19633024,"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","angular16","api","html5","material-ui","observables","rxjs","rxjs7","scss"],"created_at":"2024-11-07T03:27:55.374Z","updated_at":"2025-11-03T03:30:33.356Z","avatar_url":"https://github.com/AndrewJBateman.png","language":"TypeScript","readme":"# :zap: Angular API User Posts\n\n* App to get user details and posts from an external [JSONPlaceholder](https://jsonplaceholder.typicode.com) API.\n\n*** Note: to open web links in a new window use: _ctrl+click on link_**\n\n## :page_facing_up: Table of contents\n\n* [:zap: Angular API User Posts](#zap-angular-api-user-posts)\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* Angular routing module allows user to navigate between Users and Posts pages.\n* Angular httpClient used to get API data.\n* Sidebar with [Google Material](https://material.io/) icons and links to pages.\n* Tutorial code - see [:clap: Inspiration](#clap-inspiration) below\n\n## :camera: Screenshots\n\n![Example screenshot](./img/users.png).\n![Example screenshot](./img/posts.png).\n\n## :signal_strength: Technologies\n\n* [Angular 16](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* [Google Material](https://material.io/) icons used.\n\n## :floppy_disk: Setup\n\n* Run `npm i` to install dependencies.\n* Run `ng serve` for a dev server.\n* Navigate to `http://localhost:4200/`. The app will automatically reload if you change any of the source files.\n* `npm run build` to create build folder then copy `index.html` to `404.html`\n* Github will deploy the docs folder automatically on commit\n\n## :computer: Code Examples\n\n* `data.service.ts` using httpClient service with functions to get users, userIds and posts.\n\n```typescript\n\nimport { Injectable } from '@angular/core';\nimport { HttpClient } from '@angular/common/http';\n\n@Injectable({\n  providedIn: 'root'\n})\nexport class DataService {\n\n  constructor(private http: HttpClient) { }\n\n  getUsers() {\n    return this.http.get('https://jsonplaceholder.typicode.com/users')\n  }\n\n  getUser(userId) {\n    return this.http.get('https://jsonplaceholder.typicode.com/users/'+userId)\n  }\n\n  getPosts() {\n    return this.http.get('https://jsonplaceholder.typicode.com/posts')\n  }\n}\n\n```\n\n## :cool: Features\n\n* Angular httpClient used to get data from an external API.\n* Material icons used.\n* Updated to latest Angular version with all dependency conflicts resolved.\n\n## :clipboard: Status \u0026 To-Do List\n\n* Status: Working.\n* To-Do: Nothing\n\n## :clap: Inspiration\n\n* [Coursetro Tutorial written version: Angular 6 Tutorial - Learn Angular 6 in this Crash Course](https://coursetro.com/posts/code/154/Angular-6-Tutorial---Learn-Angular-6-in-this-Crash-Course) (not secure)\n\n## :file_folder: License\n\n* N/A\n\n## :envelope: Contact\n\n* Repo created by [ABateman](https://github.com/AndrewJBateman), email: `gomezbateman@yahoo.com`\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandrewjbateman%2Fangular-user-posts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fandrewjbateman%2Fangular-user-posts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandrewjbateman%2Fangular-user-posts/lists"}