Giter VIP home page Giter VIP logo

andrewjbateman / angular-rxjs-api Goto Github PK

View Code? Open in Web Editor NEW
2.0 3.0 0.0 1.84 MB

: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/

JavaScript 11.90% TypeScript 79.77% HTML 5.66% SCSS 2.67%
angular wikipedia typescript html5 scss api-rest json-api tailwindcss javascript typescript4

angular-rxjs-api's Introduction

โšก 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

angular-rxjs-api's People

Contributors

andrewjbateman avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.