https://github.com/mrkilljoy/test-assignment-weather-azure
A project made as a test task for a technical interview.
https://github.com/mrkilljoy/test-assignment-weather-azure
asp-net-core azure-functions mssql test-task
Last synced: 8 months ago
JSON representation
A project made as a test task for a technical interview.
- Host: GitHub
- URL: https://github.com/mrkilljoy/test-assignment-weather-azure
- Owner: mrKilljoy
- Created: 2025-04-01T14:46:24.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2025-04-23T15:39:10.000Z (10 months ago)
- Last Synced: 2025-04-23T16:49:49.624Z (10 months ago)
- Topics: asp-net-core, azure-functions, mssql, test-task
- Language: C#
- Homepage:
- Size: 216 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ⛅ Assignment.AzureWeather ☔
A solution that includes a couple independent services: a service with Azure Functions (_Assignment.AzureWeather.Function_) and a web API (_Assignment.AzureWeather.Api_). Additionally, the frontend app is located in UI/weather_app folder.
**Notes:**
* Default backend URL: https://localhost:7184 (can be changed)
* Default frontend URL: http://localhost:3000 (can be changed)
* Backend uses the persistence layer based on MSSQL and EF core, so an initial migration is required before using the service
* Both services should be configured before first use
* By default, the available API (`api/weather`) returns all existing weather entries. However, it is possible to limit the resulting set by using `from` and `to` query parameters and specifying initial values (the suggested date format is 'YYYY-mm-DD')
An example of test configuration for _Assignment.AzureWeather.Function_:
"IsEncrypted": false,
"Values": {
"AzureWebJobsStorage": "UseDevelopmentStorage=true",
"FUNCTIONS_WORKER_RUNTIME": "dotnet-isolated",
"WeatherService:Units": "metric",
"WeatherService:ApiKey": "api_key",
"WeatherService:ServiceUrl": "https://api.openweathermap.org",
"WeatherDataCityName": "Melbourne"
}
An example of test configuration for _Assignment.AzureWeather.Api_:
{
"ConnectionStrings": {
"WeatherDb": ""
},
"FrontUrl": "http://localhost:3000",
"WeatherService": {
"Units": "metric",
"ApiKey": "api_key",
"ServiceUrl": "https://api.openweathermap.org"
},
"WeatherWorker": {
"Locations": [
"Stockholm, SE",
"Gothenburg, SE",
"Oslo, NO",
"Bergen, NO",
"Copenhagen, DK",
"Frederikssund, DK"
],
"IntervalSeconds": 60
}
}