Skip to content

APushpendra08/git-trends

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

git-trends

Trending Github Repositories in Android App

Note

This App uses external API for getting the data. API Link - https://rapidapi.com/targaryen.akane/api/github-trending

Generate personal API key using above link and store it in Secret.kt(Singleton) as

const val API_KEY = "<_GENERATED_API_KEY>"

App Info

Features

  • See trending repositories of Github
  • Filter based on Author, Project Name, Description or Language

Architecture

  • Pattern Followed : MVVM

App components

  • API Service for fetching data
  • Viewmodel to persist and handle state of UI
  • UI representing the Trending repositories

Project Structure

Package(com.pandemonium.gittrends)

  • service
    • models
      • BuiltBy.kt
      • ReposItem.kt
    • network
      • ApiInterface.kt
      • RetrofitInstance.kt
  • utils
    • Constants.kt
    • Secret.kt(Need to be added manually with generated API key)
  • views
    • adapters
      • TrendRepoAdapter.kt
    • viewholders
      • TrendReposViewHolder.kt
    • viewmodels
      • MainViewModel.kt
    • MainActivity.kt

Components used

  • MVVM Architecture
  • Jetpack Library components - LiveData, Lifecycle aware components, Viewmodel
  • Coroutines for multi-threading
  • Retrofit for fetching API

Images

image image image image image image

About

Trending Github Repositories in App

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages