/ALC37DaysOfCode

Andela Learning Community 7 days of code Challenge for Mobile Web Specialist

Primary LanguageJavaScript

ALC37DaysOfCode

Andela Learning Community 7 days of code Challenge for Mobile Web Specialist and is located Here

About

This project uses ES6 and other modern browser features such as indexedDB, service worker and the cache API to fetch currency conversion information from Freecurrencyconverterapi to convert currencies regardless of whether users are online or offline.

When offline, the user can only access previously used conversions

Todo

On service worker installation

  • Prefetch all currencies from https://free.currencyconverterapi.com/api/v5/countries and save in indexedDB

  • save materialize

  • save index.html

  • save app.js

  • save every conversion as

    {
        date : date last fetched
        rate : Number 
        key : from_to
    }

App Structure

  • show current date on-top the page, to show the user the last date and time data was gotten

  • use prefetched currencies as options in dropdown select