This is a basic weather app for the intro to Javascript class taught by Adam LeBlanc.
The css and html were taken from the PWA code lab by google.
You must first clone the code to your VM.
- Open the terminal and type the following commands
cd Workspacesgit clone https://github.com/AdamLeBlanc/javascriptClass_weather-app.gitcd javascriptClass_weather-appcode .(this will open code, go back to the terminal)live-server .- Ready to go!
You will need your own API key for this to work. The one we used in class is deactivated and will no longer work.
To do this make an account at openweathermap.org.
After you have done this, find the API key section, and copy your key or make one if it is not available.
In the app.js file, replace on line 20 with your API key.
Now you're ready to go! We will do more with the code in class.