Code Monkey home page Code Monkey logo

newsapp's Introduction

Gitter

NewsApp

An app that fetches latest news and headlines. It also allows the users to favourite their news. The user also has the option to choose the source of news. They can also search for any particular trending keyword. The following libraries were used in this project.

Also Room was used for adding offline support.

Steps of Installation

  1. Fork the github repo.
  2. Install the repo locally.
  3. Generate your own API key from newsapi.org.
  4. In your system level .gradle file create a file with the name gradle.properties and add the api key to it in the following manner :

MY_API_KEY = "you_api_key"

  1. Save the above file.
  2. Run the app.

Project Conventions

MVVM Architecture

The project follows the MVVM design pattern.
MVVM(Model–view–viewmodel) is one of the architectural patterns which enhances separation of concerns, it allows separating the user interface logic from the business (or the back-end) logic.

MVVM has mainly the following layers:

  • Model
    Model represents the data and business logic of the app. One of the recommended implementation strategies of this layer, is to expose its data through observables to be decoupled completely from ViewModel or any other observer.
  • ViewModel
    ViewModel interacts with model and also prepares observable(s) that can be observed by a View.
  • View
    Finally, the view role in this pattern is to observe a ViewModel observable to get data in order to update UI elements accordingly.

Roadmap

  • Adding different sections for Science, Technology and other types of news.
  • Improving the offline support.
  • Adding more filters
  • Adding unit testing

App Screenshots

License

(c) 2019 Sridhar Jajoo

This is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This software is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this app. If not, see https://www.gnu.org/licenses/.

newsapp's People

Contributors

sridharjajoo avatar rob729 avatar codersanjeev avatar ahmed-abd-elsamie 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.