Broker App gets rates data from an external service API and determines what would be the best revenue for a specified historical period.
Project is created with:
- Visual Studio 2022
- Visual Studio Code
- .NET 6.0 / C#
- ASP.NET Core Web API
- Swagger
- Entity Framework Core
- SQL Server
- Xunit / Moq
- Exchange Rates API service
- Angular
- Angular Material
- Bootstrap
- Toastr
- Reactive Forms
- Clone this repo locally
- Open
Broker.sln
solution using Visual Studio - Set
Broker.Infrastructure
as Startup Project - Open the Package Manager Console (Tools -> Nuget Package Manager) and run
update-database
command to init the DB - Create an account in Exchange Rates API service
- Copy the API Key from your "Exchange Rates API" account
- Go back to Visual Studio and paste the API Key into the
ApiKey
field in allappsettings.json
files so that the app can connect to their API"Integrations": { "ExchangeRatesApi": { "ApiUrl": "https://api.apilayer.com/exchangerates_data/", "ApiKey": "<YOUR API KEY GOES HERE>" } }
- Open folder Broker.UI\broker-app using Visual Studio Code
- Run
npm install
All done. Both frontend and backend should be ready to be run!
- Open
Broker.sln
solution using Visual Studio - Set
Broker.Services.WebApi
as Startup Project - Press F5 to run the Web API
- Open folder Broker.UI\broker-app using Visual Studio Code
- Run
ng serve
and navigate tohttp://localhost:4200/