ernestomangia / broker-app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Broker App

Broker App gets rates data from an external service API and determines what would be the best revenue for a specified historical period.

Getting Started

Technologies

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

Installation

  1. Clone this repo locally
  2. Open Broker.sln solution using Visual Studio
  3. Set Broker.Infrastructure as Startup Project
  4. Open the Package Manager Console (Tools -> Nuget Package Manager) and run update-database command to init the DB
  5. Create an account in Exchange Rates API service
  6. Copy the API Key from your "Exchange Rates API" account
  7. Go back to Visual Studio and paste the API Key into the ApiKey field in all appsettings.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>"
    	}
      }
  8. Open folder Broker.UI\broker-app using Visual Studio Code
  9. Run npm install

All done. Both frontend and backend should be ready to be run!

Run backend (Web API)

  1. Open Broker.sln solution using Visual Studio
  2. Set Broker.Services.WebApi as Startup Project
  3. Press F5 to run the Web API

Run frontend (Angular app)

  1. Open folder Broker.UI\broker-app using Visual Studio Code
  2. Run ng serve and navigate to http://localhost:4200/

License

MIT

About

License:MIT License


Languages

Language:C# 56.3%Language:TypeScript 29.3%Language:HTML 11.7%Language:JavaScript 2.2%Language:CSS 0.5%