Skip to content

This repo is a basic landing page and can be a boilerplate for a movie list.

License

Notifications You must be signed in to change notification settings

sulhadin/movie-layout

Repository files navigation

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

About

This repo is a basic landing page and can be a boilerplate for a movie list.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published