Giter Site home page Giter Site logo

dlight's Introduction

Dlight Interview Solution

Architecture

Solution App using Guide to app architecture, in 100% Kotlin, using Android Jetpack Components.

Prerequisites

Before running this app, you need to add your Github Personal Access Token, in your local.properties file:

GITHUB_TOKEN="xxxx-xxxx-xxx"

Before every commit, make sure you run the following bash script:

./codeAnalysis

Background

Develop an application that uses Github REST APIs to achieve the following features:

  1. Search for a user profile on Github and display his account details, including, but not limited to, image, bio, username and number of repositories.
  2. Have the ability to display the user followers, and following lists. (the accounts that the user is following, and the accounts that are followed by the selected user)
  3. Display a detail page of the user's repositories and display the repository details, including, but not limited to, name, stars and description.
  4. This information should be saved in the database for offline use

Tech-stack

  • Tech-stack

    • Kotlin - a cross-platform, statically typed, general-purpose programming language with type inference.
    • Coroutines - perform background operations.
    • Flow - handle the stream of data asynchronously that executes sequentially.
    • KOIN - a pragmatic lightweight dependency injection framework.
    • Retrofit - A type-safe HTTP client for Android and the JVM
    • Chuck - An in-app HTTP inspector for Android OkHttp clients
    • Jetpack
      • Compose - Android’s modern toolkit for building native UI.
      • Room - a persistence library provides an abstraction layer over SQLite.
      • ViewModel - store and manage UI-related data in a lifecycle conscious way.
    • Timber - a highly extensible android logger.
    • Leak Canary - a memory leak detection library for Android.
  • Architecture

    • Clean architecture with ViewModel, UseCases and Repositories
  • Tests

    • Unit Tests (JUnit) - a simple framework to write repeatable tests.
    • MockK - mocking library for Kotlin
    • Kluent - Fluent Assertion-Library for Kotlin
    • Kakao - Nice and simple DSL for Espresso in Kotlin
  • Gradle

    • Gradle Kotlin DSL - For reference purposes, here's an article explaining the migration.
    • Plugins
      • Ktlint - creates convenient tasks in your Gradle project that run ktlint checks or do code auto format.
      • Detekt - a static code analysis tool for the Kotlin programming language.
      • Spotless - format java, groovy, markdown and license headers using gradle.
      • Dokka - a documentation engine for Kotlin, performing the same function as javadoc for Java.
      • jacoco - a Code Coverage Library

dlight's People

Contributors

edwardmuturi avatar

Stargazers

 avatar

Watchers

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