Giter Club home page Giter Club logo

weather_application's Introduction

Weather Application

Author: Yasser Omar Jammeli

this flutter weather application is based on MVVM clean architecture.

To run this application you to type the following in the terminal:

flutter pub run
flutter packages pub run build_runner build 
flutter run --dart-define-from-file=api-keys.json

the 'flutter packages pub run build_runner build' command is to run build_runner and generate generated code such routers for navigation and injectable to inject classes (Dependency injection)

As for the run command it has the dart-define-from-file parameters which allows to add secret api key and get them from json file for more security

PS: I had to push api-keys to repository for code integrity reasons but it should be ignored via .gitignore to keep value hidden and secure

It is Composed of two parts:

  • Core
  • And modules

Core

the Core part of the application contains generic classes, helpers and utils It is composed of:

  • Common models: generic application models such as error model and result model
  • constants: contains the application constants properties
  • enums: contains the application enumerations
  • exceptions: contains application custom exceptions classes
  • managers: contains application properties holders (singleton)
  • service: contains application base service which contains generic api methods
  • useCase: contains application generic useCase class
  • utils: contains application utils such as applicationSharedPrefrences, connectivity, dependency injection code, extensions, ui utils ...

Modules

The modules part is the application different modules for example for this application we have the weather information module

the module is composed of:

  • Data : which holds module data source (remote and local), models and repository implementation
  • Domain: which holds module repository interface, entities and useCases
  • Presentation: which holds module views, widgets and stateManger classes (bloc fot this example)

weather_application's People

Contributors

yasseromarjammeli avatar

Watchers

Yasser Omar Jammeli 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.