Coder Social home page Coder Social logo

nytimes's Introduction

NyTimes - Most Popualr

Used patters:

  • BLoC.
  • Clean Architecture Layers (feature first approach).
  • Multi Packages (bootstrap - core - design - network) using Melos (Mono Repo).

Project structure highly inspire by VGV: https://verygood.ventures/blog/very-good-flutter-architecture?utm_source=linkedin&utm_medium=social&utm_campaign=app_architecture

Lint rules from Flutter Linter

Project structure:

├─ lib
│  ├─ app
│  │  ├─ most_popular
│  │  │  ├─ application
│  │  │  ├─ data
│  │  │  ├─ domain
│  │  │  └─ presentation
│  │  └─ router
│  ├─ app.dart
│  ├─ common
│  ├─ locator
│  ├─ main.dart
│  └─ providers.dart
├─ melos.yaml
├─ packages
│  ├─ bootstrap
│  ├─ core
│  ├─ design
│  └─ network
├─ pubspec.yaml
├─ report.json // test report will saved here
└─ test
   ├─ most_popular_bloc_test.dart
   └─ most_popular_remote_test.dart

Main Dependences:

  1. Flutter BLoC for State Management.
  2. Go Router (Routing package use nav 2.0).
  3. Get It (Service Locater and Dependencies container).
  4. Dio (Http Client).
  5. BLoC Test.
  6. Http Mock Adapter for testing.

Scripts:

scripts:
  analyze:
    run: melos exec -- flutter analyze .
    description: Run `dart analyze` in all packages.

  format: melos exec -- "flutter format ."

  fix_hints: melos exec -- "dart fix —apply ."

  flutter_test_report: flutter test --reporter  json  | tojunit --output report.json

  flutter_test: flutter test

  build_runner:
    run: |
      melos exec --depends-on="build_runner" --  $runner
    env:
      runner: flutter pub run build_runner build --delete-conflicting-outputs
      
  build_relese:
    run: flutter build apk

ex: melos format .

Notes:

  1. Test report will saved in report.json file.
  2. You can find all scripts and run them from android studio or VS Code in melos.yaml file.
  3. Run this before run any melos script dart pub global activate melos if melos is note active.
  4. Run this before run report test script dart pub global activate junitreport if junitreport is note active.

nytimes's People

Contributors

mr7ssam avatar

Stargazers

Shahed Atik 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.