GithubHelp home page GithubHelp logo

danarcheronline / adventure_time_quote_generator Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 681 KB

BMO styled Adventure Time quote generator created for practicing clean architecture & TDD

Kotlin 0.89% Ruby 7.05% Swift 0.83% Objective-C 0.08% Dart 91.15%

adventure_time_quote_generator's Introduction

Adventure Time Quote Generator

An app that generates random quotes from the TV show 'Adventure Time' when the big red button is pressed. It's sole purpose was to allow me to practice Clean Architecture and TDD.

Run the app

iOS / Android

  1. Navigate to the root folder of the project.
$ cd <directory_of_this_project>
  1. Assuming flutter is setup on your machine, just run the application on your prefered simulator/emulator/device
$ flutter run
  1. Press the big red button. The other buttons are lies...

The Application Architecture

    C4Component
    title Component diagram for Adventure Time Quote Generator

    Container_Boundary(pr, "Presentation") {
        Container(widgets, "Widgets", "UI in Flutter and Dart")
        Container(vm, "ViewModel", "BLoC Flutter Statemanagement")

        Rel(vm, widgets, "Updates the state of the application")
        UpdateRelStyle(vm, widgets, $textColor="lightblue", $offsetY="40", $offsetX="-100")
        Rel(widgets, vm, "Listens for changes to the state of the application")
        UpdateRelStyle(widgets, vm, $textColor="lightblue", $offsetY="-70", $offsetX="-100")
    }

    Rel(uc, vm, "Updates the state of <br> the application based on <br> the result of the business logic")
    UpdateRelStyle(uc, vm, $textColor="lightblue" $offsetY="40", $offsetX="-70")

    Container_Boundary(do, "Domain") {
        Component(uc, "Use Cases", "Business logic in Dart")
        Component(ent, "Entities", "Domain-based objects")

        Rel(ent, uc, "entities are managed and used by use cases")
        UpdateRelStyle(ent, uc, $textColor="lightblue", $offsetX="-100")
    }

    Rel(repo, ent, "The repositories create entities from external data")
    UpdateRelStyle(repo, ent, $textColor="lightblue" $offsetY="0", $offsetX="-100")
    
    
    Container_Boundary(da, "Data") {
        Component(repo, "Repositories", "Repository Pattern")
        Component(m, "Models", "Application Data DTO",)
        Component(rds, "Remote Data Sources", "Remote Data Logic")
        Component(lds, "Local Data Sources", "Local Data Logic")
        System_Ext(api, "API", "Third-Party Adventure Time API")
        ContainerDb(db, "Local Database", "Shared Preferences Cache")

        Rel(m, repo, "models are <br> passed to <br> repositories")
        UpdateRelStyle(m, repo, $textColor="lightblue" $offsetY="-40", $offsetX="-30")
        Rel(rds, m, "creates models")
        UpdateRelStyle(rds, m, $textColor="lightblue" $offsetY="0", $offsetX="-60")
        Rel(lds, m, "creates models")
        UpdateRelStyle(lds, m, $textColor="lightblue" $offsetY="0", $offsetX="-40")
        Rel(api, rds, "passes raw data retrived from the API")
        UpdateRelStyle(api, rds, $textColor="lightblue" $offsetY="0", $offsetX="-100")
        Rel(db, lds, "passes raw data retrieved from the local database")
        UpdateRelStyle(db, lds, $textColor="lightblue" $offsetY="0", $offsetX="-150")
    }

adventure_time_quote_generator's People

Contributors

danarcheronline 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.