stymsaw / Ecommerce

Ecommerce App built using Android - Jetpack Compose

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

E-Commerce - Everything at tip of your finger

About

A simple e-commerce app that connects local retailers with people around

Built With πŸ› 

  • Kotlin - A programming language for Android development.
  • Jetpack Compose - For Ui Components
  • Coroutine - For asynchronous and more..
  • Flow - For stream data that asynchronously
  • Android Architecture Components - Collection of libraries that help you design robust, testable, and maintainable apps.
    • LiveData - Data objects that notify views when the underlying database changes.
    • ViewModel - Stores UI-related data that isn't destroyed on UI changes.
    • ViewBinding - Generates a binding class for each XML layout file present in that module and allows you to more easily write code that interacts with views.
    • Room - SQLite object mapping library.
  • Dependency Injection -
    • Dagger2 - Standard library to incorporate Dagger dependency injection into an Android application.
  • Retrofit - A Complete Fast Android Networking Library that also supports HTTP/2.
  • Gson - A modern JSON library for Kotlin and Java.
  • Glide - An image loading and caching library for Android focused on smooth scrolling.
  • Material Components for Android - Modular and customizable Material Design UI components for Android.
  • Lottie Animation - Cool Animations in an Android App.

Package Structure

com.stymsaw.myshop    # Root Package
.
β”œβ”€β”€ data                # For data handling.
β”‚   β”œβ”€β”€ local           # Local Persistence Database. Room  and shared perf
|   β”‚   └──dao            # Data Access Object for Room   
|   |   
β”‚   β”œβ”€β”€ remote          # Remote Data Handlers     
β”‚   β”œβ”€β”€ model           # Model classes
|   β”‚   β”œβ”€β”€ api         # Model classes for Api
|   |   └── db          # Model classes for Db
β”‚   └── repository      # Single source of data.
|
β”œβ”€β”€ navigation          # PArent Navhost for navigation  
|
β”œβ”€β”€ di                  # Dependency Injection  
β”‚   β”œβ”€β”€ module          # DI Modules
β”‚   β”œβ”€β”€ component       # DI Components       
β”‚   └── scope           # Dependency Scope
|
β”œβ”€β”€ ui                  # Activity/View layer
β”‚   β”œβ”€β”€ base            # Base View
β”‚   β”œβ”€β”€ custom          # Custom Views
β”‚   β”œβ”€β”€ home screen     # Homescreen components and ViewModel
β”‚   β”œβ”€β”€ productdetails  # Product details and ViewModel
β”‚   β”œβ”€β”€ searchscreen    # Searchscreen and ViewModel
β”‚   β”œβ”€β”€ splashscreen    # Splashscreen 
β”‚   └──  theme           # App themeing details
β”‚   
|
└── utils               # Utility Classes 

Architecture

This app uses ***MVVM (Model View View-Model) *** architecture.

Requirements

  • JDK 8
  • Latest Android SDK tools
  • Latest Android platform tools
  • Android SDK 21 or newer
  • AndroidX

Setup Project

  1. Open Android Studio and select Get from Version Control.
  2. Add URL as https://github.com/stymsaw/Ecommerce and proceed.
  3. Sync The project and you are done.

License

MIT License

Copyright (c) 2023 Satyam Saw

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

About

Ecommerce App built using Android - Jetpack Compose


Languages

Language:Kotlin 100.0%