Git Product home page Git Product logo

moviehero's Introduction

MovieHero

This is a showcase project in which I have tried to use both the domain-driven architecture and the Jetpack compose. It basically has 3 screens.

  • The location screen will allow user to search a location using text, GPS point,... then give the user a direction to it.
  • The home screen will show 2 movie lists: now playing and top-rated.
  • The movie detail screen will show some movie detail when the user clicks on it the home screen.

I also use the component-driven for this project. All UI components will be in 2 packages components and modules.

  • All the stateless components will go into components.
  • Each module will have a module stateful component, a module content component that should be stateless, a state data class for the content component, and a ViewModel.

Supported Android version: 21+ Supported devices: Phone & tablet

How to build:

  • Register a Google API key with enable 3 APIs: Google Map APIs, Places APIs, and DirectionAPI.
  • Register an API key from themoviedb.org
  • Store both of these API keys into local.properties like below.
....
GOOGLE_API_KEY=AIzaSyDYfto13GBPZ4SD51Fks0EZwWXQctgLvHI
THE_MOVIE_DB_API_KEY=21881da497e187aed3f7e56e5d492b4c
  • You will need to use kotlin version 1.6.10 to build this project.

Improvement

  • Implement database cache for movie list.
  • Refactor the LocationRepositoryImpl. It's kinda a mess.
  • Implement Unit testing.
  • Maybe snapshot testing for all preview composable.

moviehero's People

Contributors

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