AndrewJBateman / angular-rxjs-api

:clipboard: Angular app to fetch Wikipedia API data and display it on cards using asynchronous reactive programming observables

Home Page:https://andrewjbateman.github.io/angular-rxjs-api/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

⚑ 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 GitHub pull requests GitHub Repo stars GitHub last commit

πŸ“„ Table of contents

πŸ“š General info

  • Displays Wikipedia API JSON search data
  • Wikipedia API does not require an API key
  • RxJS pluck operator used

πŸ“· Screenshots

screenshot

πŸ“Ά Technologies

πŸ’Ύ 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

πŸ”§ Testing

  • Run ng test to run Jasmine unit tests via Karma. Testing not set up

πŸ’» Code Examples

  • Article card using Tailwind CSS styling and data-binding of search results
<article class="flex flex-wrap max-w-xl mx-auto shadow-lg md:flex-nowrap">
  <div class="p-4 my-auto">
    <h1 class="text-2xl font-semibold text-gray-800">{{ article.title }}</h1>
    <p class="mt-2 text-base text-gray-600" [innerHTML]="article.snippet">
    </p>
  </div>
</article>

πŸ†’ Features

  • Small build bundle size due to Tailwind styles (288kB)

πŸ“‹ Status, Testing & To-Do List

  • Status: Working. Deployed to Github pages
  • To-Do: Optional nav-bar and about/contact pages

πŸ‘ Inspiration

πŸ“ License

  • This project is licensed under the terms of the MIT license.

βœ‰οΈ Contact

  • Repo created by ABateman, email: gomezbateman@gmail.com

About

:clipboard: Angular app to fetch Wikipedia API data and display it on cards using asynchronous reactive programming observables

https://andrewjbateman.github.io/angular-rxjs-api/


Languages

Language:TypeScript 79.8%Language:JavaScript 11.9%Language:HTML 5.7%Language:SCSS 2.7%