Giter Site home page Giter Site logo

domain-driven-android's Introduction

Domain Driven Android

CI

Building a Model which makes sense

During countless discussions regarding the best Android architecture we often forget about principles of an object-oriented programming and proper domain modeling.

This repository contains an example of a Domain Driven Design in the Android application. You can find more details and an in-depth explanation in the Medium article.

Structure of the app

For a sake of simplicity the app is built in a single app module. It's struture can be scaled up and divided into multiple modules if needed.

Application follows an official guide to app architecture and is split into 4 major architectural layers:

  • ui - Screens, ViewModels, Theme
  • domain - Use Cases and corresponding data structures
  • data - The main Model of the applicaton with corresponding Repositories
  • core - Setup for Coroutines, Data Store and Retrofit

Tech stack

What does this app do?

It is a loyalty application for the fast-food type of restaurant, inspired by the McDonalds app, where user can collect points and exchange them for the coupons.

Projekt bez tytułu (3)

Browsing available coupons

User can browse the list of available coupons which are ordered from the cheapest to the most valueable one.

Each coupon can be clicked and then the full screen preview of it is displayed.

Exchanging collected points for the coupons

For buying the food user collects the points. Each coupon in the app has a value expreseed in points.

User can use collected points and exchange them for the coupons.

Activation of the coupon

When user exchanges points for the coupon this coupon becomes active for 60 seconds.

During this time an activation code is displayed on the screen and user can use it in the restaurant to receive a free meal.

Creating an account

To collect the points user needs an account. Account can be created directly in the application.

User needs to enter an email address and accept Terms & Conditions notes.

domain-driven-android's People

Contributors

maruchin1 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.