{"id":18614758,"url":"https://github.com/andrewjbateman/angular-tailwind-dataportal","last_synced_at":"2026-04-17T12:33:14.866Z","repository":{"id":96858920,"uuid":"305746225","full_name":"AndrewJBateman/angular-tailwind-dataportal","owner":"AndrewJBateman","description":":clipboard:  Angular used with Tailwind to create simple frontend to display backend data","archived":false,"fork":false,"pushed_at":"2024-01-25T05:32:04.000Z","size":2120,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-17T01:12:33.813Z","etag":null,"topics":["angular","angular17","frontend","json-data","tailwindcss"],"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":"2020-10-20T15:06:33.000Z","updated_at":"2023-12-19T20:24:32.000Z","dependencies_parsed_at":"2024-11-07T03:40:53.114Z","dependency_job_id":null,"html_url":"https://github.com/AndrewJBateman/angular-tailwind-dataportal","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/AndrewJBateman/angular-tailwind-dataportal","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndrewJBateman%2Fangular-tailwind-dataportal","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndrewJBateman%2Fangular-tailwind-dataportal/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndrewJBateman%2Fangular-tailwind-dataportal/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndrewJBateman%2Fangular-tailwind-dataportal/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AndrewJBateman","download_url":"https://codeload.github.com/AndrewJBateman/angular-tailwind-dataportal/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndrewJBateman%2Fangular-tailwind-dataportal/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31929715,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-17T10:35:34.458Z","status":"ssl_error","status_checked_at":"2026-04-17T10:35:09.472Z","response_time":62,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["angular","angular17","frontend","json-data","tailwindcss"],"created_at":"2024-11-07T03:26:54.285Z","updated_at":"2026-04-17T12:33:14.849Z","avatar_url":"https://github.com/AndrewJBateman.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# :zap: Angular Tailwind Data Portal\n\n* Angular app using [TailwindCSS](https://developers.google.com/chart/) components \u0026 Angular Signals to display backend data\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-tailwind-dataportal?style=plastic)\n![GitHub pull requests](https://img.shields.io/github/issues-pr/AndrewJBateman/angular-tailwind-dataportal?style=plastic)\n![GitHub Repo stars](https://img.shields.io/github/stars/AndrewJBateman/angular-tailwind-dataportal?style=plastic)\n![GitHub last commit](https://img.shields.io/github/last-commit/AndrewJBateman/angular-tailwind-dataportal?style=plastic)\n\n## :page_facing_up: Table of contents\n\n* [:zap: Angular Tailwind Data Portal](#zap-angular-tailwind-data-portal)\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  * [:wrench: Testing](#wrench-testing)\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* Data shown on a grid of Tailwind-styled cards\n* Angular Signals used to track the state of changing backend data so rendering can be optimised.\n* Any JSON data object made available on `localhost:3000` can be displayed on the Angular frontend. It is easy to modify the frontend Typescript model and HTML markup to match the JSON object on the backend. I used [drug product JSON data](https://health-products.canada.ca/api/drug/drugproduct/?lang=en\u0026type=json) as test data - see `db.json`\n\n## :camera: Screenshots\n\n![Angular page](./imgs/pharma-data.png)\n\n## :signal_strength: Technologies\n\n* [Angular framework v17](https://angular.io/)\n* [Angular Signals](https://angular.io/guide/signals)\n* [TailwindCSS v3](https://tailwindcss.com/) CSS framework\n* [JSON server](https://www.npmjs.com/package/json-server) used to serve a fake REST API backend on port localhost:3000 to test frontend\n\n## :floppy_disk: Setup\n\n* Run `npm i` to install dependencies.\n* This frontend requires a backend data source - see `/models/pharma.data.ts` for format, on port `http://localhost:3000`\n* `npm run server` to run fake backend. Navigate to `http://localhost:3000/api` to see data object.\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## :wrench: Testing\n\n* Fake databse data in `db.json` used to test frontend.\n\n## :computer: Code Examples\n\n* 'data.service.ts' function to return data array Observable with fetch status and catch errors\n\n```typescript\nloadData(): Observable\u003cState\u003cArray\u003cIPharmaData\u003e\u003e | State\u003cnull\u003e\u003e {\n    return this.http.get\u003cArray\u003cIPharmaData\u003e\u003e(`${environment.API_URL}/api`).pipe(\n      share(),\n      map((data) =\u003e {\n        return new State\u003cArray\u003cIPharmaData\u003e\u003e(\n          StatusNotification.OK,\n          data,\n          null\n        );\n      }),\n      catchError((error: HttpErrorResponse) =\u003e {\n        return throwError(\n          new State\u003cArray\u003cIPharmaData\u003e\u003e(\n            StatusNotification.ERROR,\n            undefined,\n            error\n          )\n        );\n      })\n    );\n  }\n```\n\n## :cool: Features\n\n* Tailwind build for production CSS purge results in a very small styles bundle (about 7kB)\n\n## :clipboard: Status \u0026 To-Do List\n\n* Status: working\n* To-Do: Nothing\n\n## :clap: Inspiration\n\n* [Gouv of Canada API: Drug Product Database - All Files - Drug Product](https://health-products.canada.ca/api/drug/drugproduct/?lang=en\u0026type=json)\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","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandrewjbateman%2Fangular-tailwind-dataportal","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fandrewjbateman%2Fangular-tailwind-dataportal","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandrewjbateman%2Fangular-tailwind-dataportal/lists"}