Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/andrewjbateman/angular-rxjs-api
:clipboard: Angular app to fetch Wikipedia API data and display it on cards using asynchronous reactive programming observables
https://github.com/andrewjbateman/angular-rxjs-api
angular angular16 api-rest html5 javascript json-api rxjs scss tailwindcss tailwindcss-v3 typescript typescript4 wikipedia
Last synced: 28 days ago
JSON representation
:clipboard: Angular app to fetch Wikipedia API data and display it on cards using asynchronous reactive programming observables
- Host: GitHub
- URL: https://github.com/andrewjbateman/angular-rxjs-api
- Owner: AndrewJBateman
- Created: 2021-04-05T18:25:42.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2023-06-12T09:49:56.000Z (over 1 year ago)
- Last Synced: 2024-11-07T03:32:36.297Z (3 months ago)
- Topics: angular, angular16, api-rest, html5, javascript, json-api, rxjs, scss, tailwindcss, tailwindcss-v3, typescript, typescript4, wikipedia
- Language: TypeScript
- Homepage: https://andrewjbateman.github.io/angular-rxjs-api/
- Size: 1.8 MB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# :zap: Angular RxJS API
* Angular app to fetch Wikipedia API data and display it on cards using asynchronous reactive programming observables
* Tailwind styling used for search form and search results cards
* **Note:** to open web links in a new window use: _ctrl+click on link_![GitHub repo size](https://img.shields.io/github/repo-size/AndrewJBateman/angular-rxjs-api?style=plastic)
![GitHub pull requests](https://img.shields.io/github/issues-pr/AndrewJBateman/angular-rxjs-api?style=plastic)
![GitHub Repo stars](https://img.shields.io/github/stars/AndrewJBateman/angular-rxjs-api?style=plastic)
![GitHub last commit](https://img.shields.io/github/last-commit/AndrewJBateman/angular-rxjs-api?style=plastic)## :page_facing_up: Table of contents
* [:zap: Angular RxJS API](#zap-angular-rxjs-api)
* [:page\_facing\_up: Table of contents](#page_facing_up-table-of-contents)
* [:books: General info](#books-general-info)
* [:camera: Screenshots](#camera-screenshots)
* [:signal\_strength: Technologies](#signal_strength-technologies)
* [:floppy\_disk: Setup](#floppy_disk-setup)
* [:wrench: Testing](#wrench-testing)
* [:computer: Code Examples](#computer-code-examples)
* [:cool: Features](#cool-features)
* [:clipboard: Status, Testing \& To-Do List](#clipboard-status-testing--to-do-list)
* [:clap: Inspiration](#clap-inspiration)
* [:file\_folder: License](#file_folder-license)
* [:envelope: Contact](#envelope-contact)## :books: General info
* Displays Wikipedia API JSON search data
* Wikipedia API does not require an API key
* [RxJS pluck operator](https://www.learnrxjs.io/learn-rxjs/operators/transformation/pluck) used## :camera: Screenshots
![screenshot](./img/searchpanel.png)
## :signal_strength: Technologies
* [Angular v16](https://angular.io/) Javascript framework
* [Rxjs v7](https://rxjs.dev/) Reactive Extensions Library for JavaScript
* [Tailwind CSS v3](https://tailwindcss.com/) styling, minimises build bundle size
* [Wikipedia API](https://www.mediawiki.org/wiki/API:Tutorial)## :floppy_disk: Setup
* Install dependencies using `npm i`
* Run `ng serve` for a dev server. Frontend will open at `http://localhost:4200/` - refreshes on code changes
* Run `npm run build` to create build folder## :wrench: Testing
* Run `ng test` to run Jasmine unit tests via [Karma](https://karma-runner.github.io). Testing not set up
## :computer: Code Examples
* Article card using Tailwind CSS styling and data-binding of search results
```typescript
{{ article.title }}
```
## :cool: Features
* Small build bundle size due to Tailwind styles (288kB)
## :clipboard: Status, Testing & To-Do List
* Status: Working. Deployed to Github pages
* To-Do: Optional nav-bar and about/contact pages## :clap: Inspiration
* [How to Structure Angular Apps in 2021](https://javascript.plainenglish.io/how-to-structure-angular-apps-in-2021-a0bdd481ad0d)
* [How do I display HTML inside an Angular binding?](https://blog.briebug.com/blog/how-do-i-display-html-inside-an-angular-binding)
* [dev.to: Setup TailwindCSS in Angular the easy way](https://dev.to/angular/setup-tailwindcss-in-angular-the-easy-way-1i5l)## :file_folder: License
* This project is licensed under the terms of the MIT license.
## :envelope: Contact
* Repo created by [ABateman](https://github.com/AndrewJBateman), email: `[email protected]`