/mars-weather-app

Mars weather using vanilla javascript and NASA API

Primary LanguageSCSS

Mars Weather App

Mars Weather App using vanilla javascript. by The Utopian Fool

Grab an API key from NASA https://api.nasa.gov/ and replace the DEMO_KEY

API URL used https://api.nasa.gov/insight_weather/?api_key=DEMO_KEY&feedtype=json&ver=1.0

Fix CORS issue on localhost

Use this page as a proxy to fix CORS issue https://cors-anywhere.herokuapp.com/


/* Example in vanilla Javascript*/

const proxy = 'https://cors-anywhere.herokuapp.com/';
const url = `${proxy}https://github.com/utopianfool/link-api/projects.json`;

🌐 Demo


Thanks to Kevin Powell and Web Dev Simplified for the initial tutorial https://youtu.be/MDENx86nK4k