razaghimahdi/Shopping-By-KMP
About
This is a cross-platform application that is built using Jetpack Compose Multiplatform, a declarative framework for sharing UIs across multiple platforms with Kotlin.
Other ProjectsWhat you can do
- Login, Sign Up - ✔️ Implemented
- Home - ✔️ Implemented
- Product Detail and Comments - ✔️ Implemented
- Wishlist - ✔️ Implemented
Measured star growth
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- Collecting history
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
README.md
OriginalShopping-By-KMP (Full-Stack Compose Multiplatform)
Welcome to the documentation for the Jetpack Compose Multiplatform Shopping Application! This is a cross-platform, full-stack application built entirely in Kotlin. It utilizes Jetpack Compose Multiplatform for sharing declarative UIs across multiple platforms, and features a seamlessly integrated Ktor backend engine to power the data layer.
The application allows users to browse, search, and purchase products from a shopping catalog on Android, iOS, Desktop, Web, Automotive, and AndroidTV.

Android & IOS
https://github.com/razaghimahdi/Shopping-By-KMP/assets/61207818/a4702cbf-1449-48b0-88f1-bcb9c42d273e
Desktop
https://github.com/user-attachments/assets/2ceedcef-0ec8-4886-904a-3975e6c2ea6f
AndroidTV
https://github.com/user-attachments/assets/9b7cbb10-3f95-4355-a9c7-3b23147dda18
Web
Live
https://github.com/user-attachments/assets/808a72b9-d591-44e4-a29f-16a1fd99e462
Give a Star! ⭐
If you like or are using this project to learn or start your solution, please give it a star. Thanks!
Related Articles📄
- How to handle errors in best practice
- How to set up Convention Gradle Plugin in CMP
- How to create custom Number Formatting in CMP
- How to upload in CMP Using Ktor
Features ✨
| Feature | Status |
|---|---|
| Login, Sign Up | ✔️ Implemented |
| Home | ✔️ Implemented |
| Product Detail and Comments | ✔️ Implemented |
| Wishlist | ✔️ Implemented |
| Cart / Basket | ✔️ Implemented |
| Profile & Edit Profile | ✔️ Implemented |
| Search & Category | ✔️ Implemented |
| Manage Address | ✔️ Implemented |
| Payment Method | ✔️ Implemented |
| My Orders | ✔️ Implemented |
| My Coupons | ✔️ Implemented |
| Notifications & Setting | ✔️ Implemented |
Latest Features 🚀
⚡ Full-Stack KMP Architecture
We have officially migrated to a full-stack monorepo! The project now includes a nested :server Ktor module that connects to a local MySQL database, eliminating the need for fake data and allowing end-to-end Kotlin development.
🚗 Automotive Support
Added AutomotiveApp — the application is now compatible with Android Automotive OS, making it available for in-car systems.
🌐 Web Support
Introduced WebApp — access the app directly from your browser.
📺 Android TV Support
Added TvApp — enjoy the app on Android TV devices.
💻 Desktop Support
Introduced DesktopApp — the app now runs on desktop environments (Windows, macOS, Linux).
🗺️ Google Maps Integration
Integrated GoogleMap for enhanced address input. Users can now select their location on the map before filling out address details, ensuring greater precision.
Tech Stack 📚
Client (Compose Multiplatform):
- Kotlin Multiplatform & Coroutines
- Compose Multiplatform (UI framework)
- Material3
- Ktor Client (Networking)
- Datastore (Local Storage)
- Compose Navigation (Type safety)
- Koin (Dependency Injection)
- Coil3 (Image Loading with global interceptors)
Server (Ktor Backend):
- Ktor Server (Netty)
- Exposed (SQL ORM)
- MySQL & HikariCP (Database & Connection Pooling)
- BCrypt (Password Hashing)
- JWT Authentication
Architecture 🏢
This repository implements Clean Architecture and the MVI (Model-View-Intent) pattern, structured within a modular, full-stack Gradle setup:
:core: Shared DTOs, models, and networking constants used by both client and server.:server: The Ktor JVM backend engine and database configuration.:app: Nested directory containing platform-specific targets (:app:androidApp,:app:desktopApp,:app:webApp) and the shared Compose UI module (:app:shared).
Quick Start: Running the Backend 🌐
The project now runs on an integrated Ktor 3.x backend connected to a local MySQL database. To start the API locally:
- Database Setup:
Ensure MySQL is running on your machine on port
3306. Create a new database namedshopping_db. - Configure Credentials:
Open
DatabaseFactory.ktinside the:servermodule and update theuserandpasswordvariables to match your local MySQL configuration. - Run the Server:
Execute the following Gradle task to auto-generate the database tables and start the API on
http://localhost:8080(or10.0.2.2for Android emulators):./gradlew :server:run
Explore related projects
Loading…