Skip to content

ForeverRainmaN/bilderlings-homework

Repository files navigation

Currency Calculator

Currency Converter

This README.md provides full information on how to run this application, as well as lots of my ideas on overall improvement.

Quickstart

You will need access key for Fixer API.

Create .env file in the root directory (follow .env.example as an example).

Run application:

docker-compose up

Open localhost:3000.

Run in development mode

To run application in development mode, one can use ./docker-compose.dev.yaml. It uses mocked version of Fixer API.

Run:

docker-compose -f docker-compose.dev.yaml up

Run tests

Backend:

docker-compose up -d fixer-mock
cd backend/
./gradlew test

Frontend:

cd frontend/
yarn test

TODO

Frontend:

  • Introduce state manager (Redux)
    • Remove local state from components, introduce actions to manage state
  • Error handling (http client, react rendering, etc.)
  • Handle loading state for long-term processes on UI (e.g. API request)
  • Add prettier for code style

Backend:

  • Persistence (e.g. PostgreSQL/Redis)
    • spring-data-rest can be used to greatly simplify fee editor controller
  • Add unit tests (storage, services)
  • Add validation (request, persistence)
  • Auto-start fixer mock before running tests
  • Add spotless for code style

General:

  • Add functional tests (e.g. with puppeteer)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published