/Interview-CurrencyConverter-Refactor

Interview coding challenge.

Primary LanguageJavaScriptGNU General Public License v3.0GPL-3.0

Currency Converter - Refactor

Requirements

Backend (BFF)

One of:

Frontend (UI)

IDE

Choose your favorite IDE or one of these:

Setup

The best way to work with this repository is to select a framework option for the backend (.Net, Node.js, Go) and open it. Then open the UI project in a separate IDE or window.

Verify the applications are working properly by running the following commands:

.NET BFF

Start / Debug the .Net project or enter CLI commands from the BFF project directory

# from project directory BFF/dotnet
dotnet build Interview-CurrencyConverter-Refactor.sln
dotnet run Interview-CurrencyConverter-Refactor.sln --project Interview-CurrencyConverter-Refactor/Interview-CurrencyConverter-Refactor.csproj

Node.js BFF

Start / Debug the Node.js project or enter CLI commands from the BFF project directory

# from project directory BFF/nodejs
npm install
npm run dev

Go BFF

Start / Debug the Go project or enter CLI commands from the BFF project directory

# from project directory BFF/go
go run main.go

For any of the above options, the server should be running on http://localhost:58415/

UI (React)

Start / Debug the UI project or enter CLI commands

# from project directory UI/react
npm install
npm run dev

Validate the application

If everything is working properly you will see a conversion amount under the form.

Exercise Instructions

Identify areas in both projects to Refactor and any improvements or new tests where needed. There is one test failing in BFF project. Fix the code and/or the test to get it passing.