Skip to content

An Android sample app built with Kotlin, Jetpack Compose, MVVM, Flow, and Clean Architecture to demonstrate fetching and displaying quotes from a fake REST API.

Notifications You must be signed in to change notification settings

akashgargdev/MyQuotes

Repository files navigation

📖 MyQuotes App

A modern Android application built with Kotlin and Jetpack Compose, following Clean Architecture and MVVM principles.
The app fetches random inspirational quotes and displays them in a simple yet elegant UI.

✨ This project is a learning sample that demonstrates the use of:

  • Jetpack Compose for declarative UI
  • Kotlin Flow for reactive data streams
  • Clean Architecture & MVVM pattern
  • Retrofit + OkHttp with logging interceptor
  • Dependency Injection (if added later)
  • REST API integration using DummyJSON

🚀 Features

  • 📜 Display random quotes with author name
  • 🔄 Fetch data from DummyJSON Quotes API
  • 🎨 UI designed fully in Jetpack Compose
  • ⚡ Reactive data handling with Kotlin Flow
  • 🧩 Clean separation of concerns with MVVM + Clean Architecture
  • 📱 Adaptive UI with dynamic height for long quotes

🏗️ Architecture Overview

The project is structured using Clean Architecture with clear separation of layers:

📷 Screenshots

Home Screen Quote Display
Screenshot 1 Screenshot 2

🌐 API Details

Quotes are fetched from DummyJSON Quotes API.

Example Request: GET https://dummyjson.com/quotes/3

Example Response: { "id": 3, "quote": "Time is money.", "author": "Benjamin Franklin" }


🛠️ Tech Stack

Kotlin – Primary language

Jetpack Compose – UI toolkit

Flow & Coroutines – Reactive + async programming

MVVM + Clean Architecture – Scalable architecture

Retrofit + OkHttp – Networking

About

An Android sample app built with Kotlin, Jetpack Compose, MVVM, Flow, and Clean Architecture to demonstrate fetching and displaying quotes from a fake REST API.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages