Skip to content

ranjankjha17/hulu-web-app

Repository files navigation

This is a Next.js project bootstrapped with create-next-app.

Getting Started

First, run the development server:

npm run dev
# or
yarn dev

Open http://localhost:3000 with your browser to see the result.

You can start editing the page by modifying pages/index.js. The page auto-updates as you edit the file.

API routes can be accessed on http://localhost:3000/api/hello. This endpoint can be edited in pages/api/hello.js.

The pages/api directory is mapped to /api/*. Files in this directory are treated as API routes instead of React pages.

Technology we are using

next.js

taliwind css

rest api

heroicon

tmdb api

flex box

css grid

jit compiler

server side rendering

*** nextjs is server side rendering , suppose user have request on browsers, so by default the next.js server are installed on my browsers and when users request our website on browsers, so the next.js render the require data with help of props with help of javascript, this means users are seen are page very immediately. ***

*** next js convert yout jpg,png image into webp on server to fetch image on client side immediately and only deliver the image size file for the device you want out of the box ***

*** Next js automaticaaly resize the image depend upon your device resolution means #lower resolution image for lower resolution devices *** #higher resolution image for hight resolution device like 3k, 4k, 5k , 12k, which is awesome ***

Important command

*** create next app with npx *** npx create-next-app [your app name]

*** Install tailwind via npm *** npm install -D tailwindcss@latest postcss@latest autoprefixer@latest

*** For Create your configuration files for tailwind *** npx tailwindcss init -p

*** eslint tips and tricks ***

_rfce ,command for create a function components

*** Props in react are basically allows to reuse a components is a fundamental to write code once and use in many times ***

*** Install heroicon via npm *** npm install @heroicons/react

*** hide tailwind scrollbar via npm *** npm install tailwind-scrollbar-hide

*** Install react flipmove via npm *** npm install react-flip-move

*** next.js docs *** https://nextjs.org/docs

*** heroicons url *** https://heroicons.dev/

*** Tailwind css docs *** https://tailwindcss.com/docs