Giter Site home page Giter Site logo

kanujgit / newsapp Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 6.64 MB

Demo news app with using mvvm+kotlin+coroutine

Kotlin 96.52% Java 3.48%
kotlin coroutines livedata mvvm-architecture retrofit coil-image-loader viewpager tabla android room-database

newsapp's Introduction

CircleCI codebeat badge

News App

News App is a simple news app which uses NewsAPI to fetch top news headlines from the API.

Project Overview

The goal is to create a News app which gives a user updated news from the internet related to a particular category.

The codebase focuses on following key things:

  • Code structuring, style and comments
  • Offline
  • Kotlin + Coroutines
  • room database
  • coroutine flow
  • Retrofit

API key

You'll need to provide API key to fetch the news from the News Service (API). Currently the news is fetched from NewsAPI

  • Generate an API key (It's only 2 from NewsAPI
  • Create new file named -> credentials.properties in our project root folder
  • Add the API key as shown below [Make sure to keep the double quotes]:
    NEWS_API_KEY = "<INSERT_YOUR_API_KEY>"
    API_BASE_URL = "<INSERT_YOUR_BASE_URL>"

Features

  • Navigation Drawer
  • Fragments
  • ViewPager plus TabLayout
  • Intent
  • NewsAPI
  • JSON Parsing
  • Coil
  • CardView
  • RecyclerView
  • Coroutine
  • Room database

Architecture

The app uses MVVM [Model-View-ViewModel] architecture to have a unidirectional flow of data, separation of concern, testability, and a lot more.

Architecture

newsapp's People

Contributors

anuj-algoworks avatar kanujgit 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.