Giter Club home page Giter Club logo

forex's Introduction

Forex

Forex is an application that updates in real-time the exchange rates of different currencies based on the Euro

Installation

The debug version can easily be built for installation on device(or emulator) or for an .apk which can then be installed manually

On Emulator or Device

From the terminal, run

gradlew installDebug

APK

From the terminal, run

gradlew assembleDebug

This creates an APK in

Revolut/app/build/outputs/apk/

Architecture

Clean architecture was used to architect the application. The main reasons for this choice was for future maintenance, as well as abstraction (the different layers are abstracted away from each other). There are three main layers namely:

data

Which contains the models to hold data, remote source with api for network calls to retrieve real-time data, cache source which is the data source of truth and repository to pass the data onto the domain layer

domain

Which contains usecase specific business logic for constantly updating the currencies with their rates, moving currency to top of list on click and updating the corresponding rates when the top rate changes . The domain exposes the business logic to the ui or presentation layer through interface abstractions

ui

This is the layer for the data visualization component of the application. The presentation layer was setup with MVVM where the views have little or no view logic, the viewmodels hold livedata for the views to observe, manage rxjava disposables and contain view logic without referencing view components and are testable. The View component used to visualize the data is a ConstraintLayout with a recyclerView to scroll through the data.

Caveats

As long as the rate amount at the top of the list is being changed by the user, the real-time update is suspended and reinstated afterwards

forex's People

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.