Currency Tracker is a .NET application that fetches and logs currency exchange rates using Hangfire for scheduling and Azure Functions for serverless execution.
-
CurrencyTracker/: Main application directoryCurrencyResponse.cs: Defines the structure of the currency response.CurrencyService.cs: Contains the service to fetch currency rates.Program.cs: Configures and runs the application.appsettings.json: Application configuration file.appsettings.Development.json: Development-specific configuration.CurrencyTracker.csproj: Project file for the main application.CurrencyTracker.sln: Solution file for the main application..vscode/: VS Code configuration files.
-
CurrencyTrackerFunction/: Azure Functions project directoryCurrencyResponse.cs: Defines the structure of the currency response.CurrencyService.cs: Contains the service to fetch currency rates.FetchCurrencyRate.cs: Azure Function to fetch currency rates on a schedule.Program.cs: Configures and runs the Azure Functions application.local.settings.json: Local settings for Azure Functions.CurrencyTrackerFunction.csproj: Project file for the Azure Functions application.CurrencyTrackerFunction.sln: Solution file for the Azure Functions application..vscode/: VS Code configuration files.
- .NET 8.0 SDK
- Azure Functions Core Tools
- Visual Studio Code or Visual Studio
-
Clone the repository:
git clone <repository-url> cd CurrencyTracker
-
Restore the dependencies:
dotnet run
-
The application will be available at
https://localhost:7178orhttp://localhost:5001
-
Navigate to the CurrencyTrackerFunction directory:
cd CurrencyTrackerFunction -
Build the Azure Functions project:
dotnet build
-
Start the Azure Functions host:
func start