Code Monkey home page Code Monkey logo

cinemania's Introduction

CineMania

CineMania is an Android application built with Jetpack Compose. Movie fans can have recent information about the trending, popular, top rated (and many more) Movies, TvShows and Celebrities. Not only that, users can become familiar with the details of their favorite Movies, TvShows and the casts. If they are signed in with their TMDB acoount, they can also save Movies and TvShows as favorites and/or as Watch Later. Finally, users of CineMania application can search for Movies, TvShows and Celebrities, and have all the detailed information about them.

App Architechture

CineMania application is built on top of the concept that is well know for any Android developer - MVI (Model-View-Intent):

  • Model - covers all the data related code;
  • View - covers all presentation related code;
  • Intent - is an event that presentation layer sends to a ViewModel which reacts to that event and changes UiState accordingly or emits SideEffect to the presentation layer. UiState is observed by presentation layer, which means any change to UiState changes the state of the application.

App Structure

CineMania application is divided into modules based on their responsibilities. In the image, you can see all modules and their dependencies. Module "A" pointing to module "B" means module "A" depends on module "B" App Structure

Setup

Get your api key from TMDB API and replace it in the local.properties file:


 API_KEY = "API_KEY_VALUE"

Tech Stack

  • Jetpack Compose - is a modern UI toolkit to build native android applications.
  • ViewModel - is a class that holds application data and survives configuration changes.
  • Kotlin Coroutines - is a lightweight threads that is used to handle concurrent programming. Coroutines allow developers to write asyhnchronous code in a synchronous way.
  • Retrofit - is one of the widely used HTTP clients for Android. It is used to consume RESTful web services and convert to objects.
  • GSON - is used to parse Json format to Kotlin objects.
  • Kotlin Flow - is a stream of data that can be collected inside coroutines.
  • Dagger Hilt - is used to inject dependencies into classes, for example, in the project, different types of Use Cases are injected into ViewModel's constructor.
  • Coil - is used to fetch and display images asynchronously.

cinemania's People

Contributors

umidjonkhasimov avatar

Stargazers

Samandar Kamalov avatar Anarbaev Erdin avatar Abror Esonaliev 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.