/OTT-Clone

Primary LanguageJavaScript

This project was bootstrapped with Create React App.

Live demo



Run on local

  1. npm i
  2. npm run start

Running the app on: http://localhost:3000

Test cases

To run the test case npm run test -- --watchAll=false
Test are written on the folder __test__

Design Decision

  1. When Navigation bar height is set to 192px , height rapidly increase , so reduced the size



Problems

  1. When user initially moved to the bottom there will be loader for loading the remaining list. In realtime the data will be fetched from the api so added a setTimeOut() when fetching list

[On file (Line No: 22)](https://github.com/abhisawesome/OTT-Clone/blob/main/src/hooks/fetchMovie.js)
  1. For functional components only added the snapshot testing





Add-on

  1. added github actions for auto-deploy
    File
  2. Docker file to run on local :
    docker build -t ott-clone . && docker run -p 3001:3000 ott-clone