Giter Club home page Giter Club logo

pizzacheckout's Introduction

PizzaCheckout

App used to calculate the price of pizzas based on certain discount criteria. Written in 100% Kotlin and Native Android.

Screenshot

Tech stack.

  1. Jetpack Compose for the UI ๐Ÿ“ฑ
  2. MVVM for the architecture. โš™๏ธ
  3. Coil for image loading ๐Ÿ–ผ๏ธ
  4. Material Design for Jetpack Compose ๐Ÿ‘ฉโ€๐ŸŽจ

How to setup and run?

  1. Download and install latest stable Android studio
  2. Sync the project and followup the prompt.
  3. Press on build icon โ–ถ๏ธ in Android Studio while connected to a real device or emulator
  4. That's it, App will run on your device once its built!

Walkthrough Instructions

  • If you are looking for the core business logic, Head out to java/athul/pizza/checkout/data/CheckoutRepository.kt
  • UI component code is written in the package java/athul/pizza/checkout/ui
  • Test cases are found in PizzaCheckout/app/src/test

A general flow of the app would be,

UI <---> ViewModel (MainViewModel.kt) <--> Model / Repository (CheckoutRepository.kt & JSON storage for data source (Hardcoded asset file for now) )

UI: It contains the UI Code. A composable function is a smallest unit of a UI, Also sends the user action to the ViewModel but does not receive the response back directly. All responses are recieved via flow APIs of viewmodel

ViewModel: It acts as a connection between the View and the business logic. Furthermore, it doesn't have any idea about which View it has to use as it does not possess a direct reference with the View. Hence, the ViewModel isn't aware of the view that it is interacting with.

Model: It represents the business logic and the data of an Application. It also consists of the business logic - local and remote data source, model classes, repository.

Feel free to raise any bugs or concerns as a Github issue!

pizzacheckout's People

Contributors

athulantonynp avatar

Stargazers

 avatar

Watchers

 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.