{"id":18614746,"url":"https://github.com/andrewjbateman/angular-material-darkmode","last_synced_at":"2026-05-10T16:31:53.603Z","repository":{"id":39611764,"uuid":"331433398","full_name":"AndrewJBateman/angular-material-darkmode","owner":"AndrewJBateman","description":":clipboard: Weather API search with dark mode toggle","archived":false,"fork":false,"pushed_at":"2023-05-01T17:02:21.000Z","size":1989,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-31T21:14:26.730Z","etag":null,"topics":["angular","angular-material","angular16","dark-mode","html5","rxjs","rxjs7","weather-api"],"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":"2021-01-20T21:11:38.000Z","updated_at":"2023-05-21T12:28:34.000Z","dependencies_parsed_at":"2024-11-07T03:40:52.152Z","dependency_job_id":null,"html_url":"https://github.com/AndrewJBateman/angular-material-darkmode","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/AndrewJBateman/angular-material-darkmode","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndrewJBateman%2Fangular-material-darkmode","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndrewJBateman%2Fangular-material-darkmode/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndrewJBateman%2Fangular-material-darkmode/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndrewJBateman%2Fangular-material-darkmode/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AndrewJBateman","download_url":"https://codeload.github.com/AndrewJBateman/angular-material-darkmode/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndrewJBateman%2Fangular-material-darkmode/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32863400,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-10T13:40:02.631Z","status":"ssl_error","status_checked_at":"2026-05-10T13:40:02.145Z","response_time":54,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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","angular-material","angular16","dark-mode","html5","rxjs","rxjs7","weather-api"],"created_at":"2024-11-07T03:26:47.302Z","updated_at":"2026-05-10T16:31:53.577Z","avatar_url":"https://github.com/AndrewJBateman.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# :zap: Angular Material Table\n\n* App displays weather from the [OpenWeather API](https://home.openweathermap.org/)\n* Uses the [Angular Material design component library](https://material.angular.io/) to add a dark mode\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-material-darkmode?style=plastic)\n![GitHub pull requests](https://img.shields.io/github/issues-pr/AndrewJBateman/angular-material-darkmode?style=plastic)\n![GitHub Repo stars](https://img.shields.io/github/stars/AndrewJBateman/angular-material-darkmode?style=plastic)\n![GitHub last commit](https://img.shields.io/github/last-commit/AndrewJBateman/angular-material-darkmode?style=plastic)\n\n## :page_facing_up: Table of contents\n\n* [:zap: Angular Material Table](#zap-angular-material-table)\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 standard dark theme](https://material.angular.io/guide/theming) used\n* [RxJS takeUntil](https://www.learnrxjs.io/learn-rxjs/operators/filtering/takeuntil) used to emit values until provided observable limits - until $Unsubscribe in this case\n* [RxJS Subject](https://www.learnrxjs.io/learn-rxjs/subjects/subject#a-special-type-of-observable-which-shares-a-single-execution-path-among-observers) used to share an execution path among observers\n* [RxJS Filter](https://www.learnrxjs.io/learn-rxjs/operators/filtering/filter) to emit only selected values\n\n## :camera: Screenshots\n\n![Example screenshot](./img/weather.png)\n![Example screenshot](./img/dark.png)\n\n## :signal_strength: Technologies\n\n* [Angular v16](https://angular.io/)\n* [Angular Material v16](https://material.angular.io/)\n* [RxJS v7](https://rxjs-dev.firebaseapp.com/guide/overview)\n\n## :floppy_disk: Setup\n\n* Install dependencies using `npm i`\n* Sign up with [OpenWeather API](https://home.openweathermap.org/), get a (hopefully) free API key and add it to the `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.\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\n## :computer: Code Examples\n\n```typescript\n  // Function that takes a city name as input and returns an Observable using a Weather interface\n  getWeatherForCity(city: string): Observable\u003cWeather\u003e {\n    const params = new HttpParams({ fromObject: { q: city } });\n\n    return this.httpGet\u003cWeather\u003e('weather', params).pipe(\n      map((data: Weather) =\u003e ({\n        ...data,\n        image: `https://openweathermap.org/img/wn/${data.weather[0].icon}@2x.png`,\n      })),\n      delay(500)\n    );\n  }\n\n  private httpGet\u003cT\u003e(url: string, params: HttpParams): Observable\u003cT\u003e {\n    params = params.append('appid', environment.apiKey);\n    params = params.append('lang', 'en');\n    params = params.append('units', 'metric');\n    return this.http.get\u003cT\u003e(`${this.baseUrl}/data/2.5/weather`, { params });\n  }\n```\n\n## :cool: Features\n\n* dark mode toggle\n* stylish weather card\n\n## :clipboard: Status \u0026 To-Do List\n\n* Status: Working\n* To-Do: Correct 5 type errors \"Property 'main' does not exist on type 'unknown'.\"\n\n## :clap: Inspiration\n\n* [Angular Material Darkmode in 3 Steps](https://zoaibkhan.com/blog/angular-material-dark-mode-in-3-steps/)\n* [Angular Weather App RxJS in Angular](https://zoaibkhan.com/blog/rxjs-in-angular-creating-a-weather-app/)\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-material-darkmode","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fandrewjbateman%2Fangular-material-darkmode","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandrewjbateman%2Fangular-material-darkmode/lists"}