GithubHelp home page GithubHelp logo

easyweather's Introduction

Description

This project was an Android Challenge I was assigned to. After completing it, I decided to share it as a sample project using MVP + RxJava and Dagger. Of course it needs improvement so it would be a great oppotunity to learn and get new ideas about best practices, MVP, Dependency Injection and unit tests. Feel free to share ideas, suggestions and PRs! =)

The challenge here is to build an app in which people can see the weather forecast. The user can select a city from a list of cities and see a 5 day weather forecast for the selected city.

Required functionality:

  1. The weather information should be retrieved from a live 3rd party service;

  2. The city list should default to Dublin, London, New York and Barcelona;

  3. The user must be able to add to the city list;

  4. The user must be able to remove a city from the city list;

  5. All changes should be persistent. If the user adds or remove a city then the change should persists when the application is restarted;

  6. The user must be able to refresh the weather forecast;

  7. The application should present the forecasts as a graphical display.

Implementation

I used an architecture based on the MVP pattern and followed some Clean Architecture concepts. The application is divided in three main packages: Model, Data and View.

  • Model: Domain rules (not applicable in this case) and models.
  • Data: Responsible for managing the flow of data used in the application.
  • View (View + Presenter): Responsible for the presentation layer.

Libraries

  1. RxJava
  2. Retrofit + OkHttp
  3. ButterKnife
  4. ORMLite
  5. Gson
  6. Dagger

easyweather's People

Contributors

danprado avatar

Watchers

 avatar James Cloos 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.