This is a clone of Momentum app - a personalised dashboard app.
User is able to:
- see background images from Unsplash website
- see current time
- see information about three cryptocurrencies (name, current price, price change over 24h, 7d and 30 days)
- see information about current weather at user's location
- Solution URL: solution
The process of adding a custom extension is quite similiar in every modern browser. Below is the instruction for Chrome:
- git clone the repo
- go to Chrome->Extensions tab in the browser
- check the developer mode is on (right upper corner)
- click on 'load unpacked' button (left upper corner)
- find the path to the cloned repo on your desktop.
- click OK, and you can now use this app as an extension!
To get it to work I created a manifest.json
file which is necessary to add the extension to the browser:
{
"manifest_version": 3,
"name": "FirstSight - Personal Dashboard",
"version": "1.0.0",
"description": "Just for practicing async JS",
"action": {
"default_icon": "./img/icon.png"
},
"chrome_url_overrides": {
"newtab": "index.html"
}
}
In order to fetch data from the Unsplash and Open Weather Map APIs you have to register an account. Then, in the script.js
file provide your unique ID keys, given after registering.
- ES6+ (async/await, fetch API)
- Semantic HTML5 markup
- CSS3
- Flexbox / Grid
- Crypto API
- Open Weather Map API
- Unsplash API
With this challenge I trained the concept of asyncronous programming in Javascript. I fetch data from multiple API (background images, crypto info, weather info) and used it to build the app.
There's TODO widget that needs coding. Also, I'm planning to add new features to already existing widgets (option tags, choice of cities, etc.)
- Kevin Powell | CSS Evangelist - My favourite teacher for RWD and CSS as a whole. Highly recommend it!
- Crypto API - all about cryptocurrencies
- Unsplash Image API - great source of free to use images
- Open Weather Map API - get your weather data here!