Giter Site home page Giter Site logo

m2_assignment's Introduction

M2 Watchlist ๐Ÿš€๐Ÿค‘

A simple feature built with Dart/Flutter.

Overview and Architecture ๐Ÿ‘€

Unfortunately, it's not a complete feature giving the limited time (8-10 hours). The API I used isn't super compatible with Binance's so some coins might not load.

Walkthrough my thought process

My focus was on showing modularity, testability, scalability, and a good looking UI. I didn't focus much on user experience.

The feature is composed of multiple modules:

Each module has this structure:

  • module
    • feature_name
      • data
        • mappers
        • repositories
        • responses
        • sources
      • domain
        • entities
        • exceptions
        • use_cases
      • ui
        • bloc
        • widgets
    • shared
      • di

Ticker tile is responsible to establish its own Websocket connection lifecycle while Ticker list is responsible for fetching coin list and supply it to Ticker tiles.

Since this assignment is only for showcasing, I didn't test packages but I usually always do 100% coverage if I have time.

How to Run ๐Ÿ”ง

I upgraded to dart 3 to use the sealed classed feature so you might need to upgrade

  1. Setup you environment
Flutter: 3.10.5 โ€ข channel stable
Dart: 3.0.5
  1. Run You need to run these 2 commands in every package and the root directory
$ flutter pub get
$ dart run build_runner build
  1. Run the app
$ flutter run

Possible Improvements ๐Ÿ“ˆ

  • Cache wss listeners so widget don't have to re-establish connections frequently.
  • Add navigation & localization
  • Create a custom inherited theme

Known Issues

  • Some coins aren't showing because of incompatible APIs

I tried to keep it between 8-10 hours of work.

m2_assignment's People

Contributors

ayham95 avatar

Watchers

 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.