Giter VIP home page Giter VIP logo

presfeed's Introduction

PresFeed

PresFeed is a demo app that demonstrates the MVVM architecture pattern in Android. It uses various technologies such as Hilt, Room, Navigation, LiveData, coroutines, Retrofit, Okhttp, Moshi, and unit testing.

Features

PresFeed has two pages:

  1. Headlines page: This page shows a list of headlines from a specific news source.
  2. News detail page: This page shows the details of a news article.

Installation

To run the app, you need to clone the repository and open it in Android Studio. Then, you can build and run the app on an emulator or a physical device.

Adding an API key

To use this app, you will need to obtain an API key from newsApi website and add it to the local.properties file in the root directory of the project. Here's how:

  1. Open the local.properties file.
  2. Add a new line to the file with the following format: apikey="your_api_key_here". Replace your_api_key_here with your actual API key.
  3. Save the local.properties file.

Technologies Used

PresFeed uses the following technologies:

Architecture

PresFeed follows the MVVM (Model-View-ViewModel) architecture pattern. Here's a brief overview of the architecture:

  • Model: This layer contains the data models and repository classes that manage the data.
  • View: This layer contains the UI components such as Activities, Fragments, and XML layouts.
  • ViewModel: This layer acts as a mediator between the View and Model layers. It contains the business logic of the app and provides data to the View layer.

presfeed's People

Contributors

mehdi-git 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.