Coder Social home page Coder Social logo

android-challenge-quandoo's Introduction

Quandoo android challenge

You can download the APK here or see the images here.

Task

We need an application to make reservations in a restaurant.

Workflow

The waiter opens the app, chooses a customer from a list, the app navigates him to a table choosing screen. The waiter chooses the table and the app highlights the chosen table. ​ Every 10 minutes all reservations have to be removed even if the application is closed.

API description

Each customer has First Name, Last Name and Id.

The tables are represented as one-dimensional array of booleans where “true” means that the table is available and “false” that it is not.

Requirement

  1. Tables have to be represented as cells on grid. ✔
  2. Available and unavailable tables have to be easily recognized. ✔
  3. The app has to also work offline. ✔
  4. Search option for customers would be a plus. ✔
  5. Any unspecified details are left to your imagination. ✔

What we will review

  1. Unit and instrumentation test coverage.
  2. Architecture.
  3. Code style.
  4. Code extensibility.
  5. Performance.

Implementation details

  1. It use the concept of Package by Feature / Domain.
  2. It use MVP pattern for presentation and to make tests easier.
  3. It use Dagger for Dependency Injection.
  4. It use Repository Pattern with OkHttp, Retrofit and Json for data loading.
  5. It use RxJava with Retrolambda.
  6. It use ButterKnife for view bind.
  7. It use SVG.
  8. It has some unit testing with JUnit and Mockito (see test folder).
  9. It has some Ui tests with Espresso (see androidTest folder).
  10. It use Hawk to cache (work offline).
  11. It use GcmNetworkManager (see TableMapTaskService) to remove reservation every 10 minutes (even if the application was closed).

Important: Unit and Ui tests must run with Mock flavor.

TODO: Improvements if I have more time

  1. Support screen rotation / state.
  2. Better testing coverage.
  3. Export String resources from Ui.
  4. Refactoring.
  5. Style improvement.
  6. Better git flow / commits.
  7. Better offline strategies (for example: https://github.com/NYTimes/Store).

UX / UI

Other code examples

Contacts

android-challenge-quandoo's People

Contributors

cs-marcello-galhardo avatar marcellogalhardo 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.