Giter Club home page Giter Club logo

rickandmorty's Introduction

rickandmorty

Flutter Version

Table of Contents

Installation

  • Run git clone https://github.com/cjamcu/rickandmorty.git to clone the repository
  • Run cd rickandmorty to enter the project directory
  • Run flutter pub get to install dependencies
  • Run flutter run to run the app

Features

  • View all characters with infinite scrolling
  • Search for characters by name
  • View character details
  • View all Locations with infinite scrolling
  • View Location details
  • View all Episodes with infinite scrolling
  • View Location details

Architecture Proposal

The architecture of the project is based on the Clean Architecture. This architectural pattern promotes separation of concerns and maintainability by dividing the project into distinct layers: presentation, domain, and data.

Presentation Layer

In the presentation layer, we handle the user interface, application logic, and state management using the BLoC pattern. Each screen corresponds to a Bloc which manages the state and interactions of the UI components.

Domain Layer

The domain layer contains the core business logic of the application. It includes use cases that encapsulate the interactions between the presentation and data layers. The entities in this layer represent the core data structures, while the repositories define the contract for data retrieval.

Data Layer

The data layer is responsible for interacting with external data sources, such as APIs or databases. It includes the implementation of the repositories defined in the domain layer, as well as data models that map to the external data structures.

Using this architecture has several benefits, including:

  • Modularity: Each layer is independent, making it easier to replace or modify components without affecting the entire system.
  • Testability: The separation of concerns allows for easier unit testing of individual components.
  • Scalability: The architecture is designed to accommodate growth and new features without compromising the existing codebase.

Architecture Proposal

Image Source: Platzi

Dependencies

We've leveraged a range of external dependencies to enhance the functionality and performance of the app. Each dependency serves a specific purpose, contributing to the overall experience:

  • equatable: ^2.0.5
  • flutter_bloc: ^8.1.3
  • bloc: ^8.1.2
  • get_it: ^7.6.2
  • responsive_grid: ^2.4.4
  • cached_network_image: ^3.2.3
  • http: ^1.1.0

Screenshots

alt-text-1 alt-text-2 alt-text-1 alt-text-2 alt-text-1 alt-text-2

rickandmorty's People

Contributors

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