0% found this document useful (0 votes)
26 views

Cosc4220 Assignment7 BlazorWASM

This document provides instructions for an assignment to create a weather application using Blazor Web Assembly. Students will make an API call to the National Weather Service to retrieve a forecast for Laramie, Wyoming and display specific details for the next week including date/time, temperature, precipitation probability, forecast summary, and icon. The application will also display the elevation and units of measurement on the home page. Students will submit their work through a GitHub classroom assignment, including a README file with their name, assignment number, submission date, any collaborators or sources used, and notes on functionality.

Uploaded by

aaa zzz
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
26 views

Cosc4220 Assignment7 BlazorWASM

This document provides instructions for an assignment to create a weather application using Blazor Web Assembly. Students will make an API call to the National Weather Service to retrieve a forecast for Laramie, Wyoming and display specific details for the next week including date/time, temperature, precipitation probability, forecast summary, and icon. The application will also display the elevation and units of measurement on the home page. Students will submit their work through a GitHub classroom assignment, including a README file with their name, assignment number, submission date, any collaborators or sources used, and notes on functionality.

Uploaded by

aaa zzz
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

Blazor Web Assembly

UWYO COSC 4220


1 Assignment
For this assignment you will be creating a more robust (and accurate) weather application using Blazor Web
Assembly. Note, pay attention to the nesting in the JSON.
dotnet new blazorwasm
You will be making an API call to the National Weather Service. You can make the call with this api-url:
https://api.weather.gov/gridpoints/CYS/84,23/forecast
This will give you the weather forecast for Laramie. I recommend running that call in either a browser or
something like ThunderClient so you can see the format of the response.
Websites you may find to be helpful:
https://json2csharp.com/
https://learn.microsoft.com/en-us/dotnet/standard/serialization/system-text-json/how-to?
pivots=dotnet-8-0
https://learn.microsoft.com/en-us/nuget/quickstart/install-and-use-a-package-using-the-dotnet-cli
You application will have the following pages:
Forecast, where you will display the forecast for the next week. This is the “periods” of the API
response. You will include the following columns:
– Date/Time (the period name)
– Temp
– Probability of Precipitation
– The Forecast Summary (Short Forecast)
– The icon, bsaed on the API response
Home page which will include
– The Elevation in feet
– The forecast generator
– the units of measurement (us/metric)

2 Submission
Submissions must include a .gitignore to ignore node modules
Submissions for this homework will be done though github classroom.
The assignment can be accepted here: https://classroom.github.com/a/QR4-K28h
Submissions must include the following:
A README.md containing:
Your Name
The Assignment number
Submission date
Who you worked with/sources used
Any program quirks/things that don’t work
All resource files must be present.

Written by Danny Radosevich for UWYO COSC 4220

You might also like