A two-tier architecture demonstration project consisting of a Ktor-based backend API and an Android frontend application.
- StockAppServer: Backend REST API built with Ktor
- StockAppViewer: Android frontend application using Jetpack Compose
- Real-time stock price fetching
- Top 5 stocks display with dynamic sorting
- Live price updates
- Modern UI with Jetpack Compose
- RESTful API communication via Retrofit
- Kotlin
- Ktor Framework
- Kotlin Serialization
- Logging Framework
- Open
StockAppServerin IntelliJ IDEA - Run the server:
./gradlew run
- Jetpack Compose
- ViewModel
- Retrofit
- Kotlin Coroutines
- Open
StockAppViewerin Android Studio - Default API endpoint:
http://10.0.2.2:8080/stocks - Run on Android Emulator
| Method | Endpoint | Description |
|---|---|---|
| GET | /stocks | Retrieve top 5 stocks with prices |
| GET | / | Health check endpoint |
StockApp/
├── StockAppServer/ # Ktor Backend
├── StockAppViewer/ # Android Frontend
├── .gitignore
└── README.md