Git Product home page Git Product logo

movie-layout's Introduction

Movie Layout

This repo is a basic landing page and can be a boilerplate for movie list. Well-structured components are supported with styled-components. Components are powered with react hooks as well as custom hooks. Responsive design is adopted.

How to Run

yarn install
yarn start

About

Movie layout has a cover image and all movies and series are displayed in a grid system. Blue icon appears at the top-right corner of each movie|series. This button adds/removes movie|series from to/from the favorites preferences.

Movie-layout

Note

Instead of a complete OOP, I used fully function based solution and FP approach.

Infrastructure

Store has built with @reduxjs/toolkit. Saving to and reading from localStorage is available. Axios is used as http request handler. A HttpClient has built as base class for network calls. Any class cen be built extending from the one. the application structure is built with React hooks. index is the entrance file wrapped with Provider which provides the state management through React redux.

Since the game is built with React hooks, Therefore; strongly got benefits from some fascinating react hooks. That are useEffect, useCallback, useMemo

Folder Structure

.
├── public
└── src
    ├── assets
    │   └── images
    ├── components (global components)
    │   ├── display
    │   ├── grid
    │   ├── input
    │   ├── navbar
    │   └── svg
    ├── enums
    ├── lib
    │   └── client
    ├── presenters
    │   ├── components
    │   │   ├── header
    │   │   ├── menu
    │   │   │   ├── helpers
    │   │   │   └── hooks
    │   │   ├── search
    │   │   └── section
    │   │       └── hooks
    │   └── home
    │       ├── helpers
    │       └── styled
    ├── store
    │   └── helpers
    └── types

In this structure, presenter based helper and component folder structure is adopted. Every main component has its on components, helpers, styled next to it. Landing page accommodates under home as index.tsx.

TODO

  • Tests
  • Server Side Rendering (SSR)
  • Error handler
  • react-query implementation for proper caching management and network manager.
  • Dependency inversion implementation for HttpClient

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.