Git Product home page Git Product logo

wisnuwiry / movieapp Goto Github PK

View Code? Open in Web Editor NEW

This project forked from rrifafauzikomara/movieapp

0.0 1.0 0.0 58.03 MB

๐ŸŽฌ MovieApp is a Flutter application built to demonstrate the use of modern development tools with best practices implementation like Modularization, BLoC, Dependency Injection, Dynamic Theme, Cache, Shimmer, Testing, Flavor, CI/CD, etc.

License: MIT License

Kotlin 0.18% Swift 0.17% Objective-C 0.02% Dart 99.05% Ruby 0.58%

movieapp's Introduction

Movie App

GitHub stars GitHub forks GitHub watchers

Codemagic build status GitHub license platform Open Source Love

Get it on Google Play

Features

  • Switch Theme (Dark and Light) by App ๐Ÿ”ฅ
  • Movies
  • Tv Show
  • Discover
  • Detail Movies & Tv Show (with Trailer and Crew)
  • Booking Ticket Simulation (I modified from the original code ๐Ÿ˜)

๐Ÿ“ธ Example iOS

                                                  

๐Ÿ“ธ Example Android

                                                  

Quick start

This is a normal flutter app. You should follow the instructions in the official documentation. This project uses BLoC (business logic component) to separate the business logic with UI itself. It's recommended to do self-study about it before jumping into the project here. And also on this project uses Modularization approach to separate each feature (core, shared, ui modules). You can do self-study about it in here.

Modularization Structure ๐Ÿ”ฅ

# Root Project
.
|
โ”œโ”€โ”€ lib                        # Name of module (default from Flutter).
โ”‚   โ”œโ”€โ”€ launcher               # Main Application.
โ”‚   โ””โ”€โ”€ ui                     # Activity/View layer.
|
โ””โ”€โ”€ libraries                  # Name of directory.
    โ”œโ”€โ”€ core                   # Name of module.
    โ”‚   โ”œโ”€โ”€ bloc               # Business logic component.
    โ”‚   โ”œโ”€โ”€ di                 # Dependency injection.
    โ”‚   โ”œโ”€โ”€ local              # Local data handlers.
    โ”‚   โ”œโ”€โ”€ network            # Remote data handlers.
    โ”‚   โ””โ”€โ”€ repository         # Repository data handlers.
    |
    โ”œโ”€โ”€ dependencies           # Name of module (Handle dependency version updates).
    |
    โ””โ”€โ”€ shared                 # Name of module.
        โ”œโ”€โ”€ common             # Common shared.
        โ””โ”€โ”€ widget             # Custom widget which can be used repeatedly.

Built With ๐Ÿ› 

Todo

  • Add Lint
  • Add Favorite Movie and Tv Show using Moor
  • Reminder with Notification
  • Play Trailer with Full Screen
  • Re-write Integration Testing (UI Test) because of Redesign UI
  • Unit Testing (Mockito with BLoC)
  • Add Fastlane
  • Add CI to automatically publish to Firebase App Distribution

How to run the App

  1. Clone this project.
  2. Open with your favorite tools editor.
  3. Run Pub get on each module sequentially starting from dependencies, core, shared, and your root project to generated pubspec.lock file.
  4. Add your API_KEY into api_constant.dart file.
  5. Generated *.g.dart file in core module. But before you running that, make sure go to core module first using cd command. For example cd libraries and then cd core. Then you can run this command: flutter packages pub run build_runner build --delete-conflicting-outputs.
  6. Run the App using this or this. Enjoy your App!.

Run the App using command prompt

Development

flutter run --flavor development --target=lib/launcher/main-dev.dart

Production

flutter run --flavor production --target=lib/launcher/main-prod.dart

Run the App using Run

Tutor1
Tutor2
Tutor3

How to run the Test

Integration Testing (will be modified, for now it's not working)

flutter drive --target=test_driver/app.dart --flavor development

Author

  • R Rifa Fauzi Komara

Don't forget to follow me, fork and give me a โญ

License

MIT License

Copyright (c) [2020] [R Rifa Fauzi Komara]

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

movieapp's People

Contributors

rrifafauzikomara avatar

Watchers

James Cloos 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.