{"id":22559798,"url":"https://github.com/taurusilver7/hulu-2.0","last_synced_at":"2026-04-16T08:36:26.654Z","repository":{"id":181445534,"uuid":"362015731","full_name":"taurusilver7/hulu-2.0","owner":"taurusilver7","description":"A next-js powered video subscription application styled with tailwind \u0026 hosted on Vercel","archived":false,"fork":false,"pushed_at":"2022-08-15T16:24:29.000Z","size":150,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-02T12:36:06.418Z","etag":null,"topics":["media","nextjs","tailwindcss"],"latest_commit_sha":null,"homepage":"https://hulu-2-0-eight.vercel.app","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/taurusilver7.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2021-04-27T07:11:51.000Z","updated_at":"2024-05-14T09:08:53.000Z","dependencies_parsed_at":"2023-07-15T16:51:03.366Z","dependency_job_id":null,"html_url":"https://github.com/taurusilver7/hulu-2.0","commit_stats":null,"previous_names":["taurusilver7/hulu-2.0"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/taurusilver7%2Fhulu-2.0","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/taurusilver7%2Fhulu-2.0/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/taurusilver7%2Fhulu-2.0/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/taurusilver7%2Fhulu-2.0/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/taurusilver7","download_url":"https://codeload.github.com/taurusilver7/hulu-2.0/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246026111,"owners_count":20711581,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["media","nextjs","tailwindcss"],"created_at":"2024-12-07T21:09:20.415Z","updated_at":"2026-04-16T08:36:26.595Z","avatar_url":"https://github.com/taurusilver7.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Hulu Clone\n\n\u003e Hulu is an American subscription video on demand service fully controlled and majority-owned by The Walt Disney Company, with Comcast as an equity stakeholder.\n\u003e Styled using flexbox \u0026 tailwind css\n\u003e The REST API used is [Tmdb](https://tmdb.org) \u0026 Vercel for hosting the next js application.\n\n## Stock\n\n[logo](https://press.hulu.com/wp-content/uploads/2020/02/hulu-white.png?fit=1280%2C680)\n[logo-alt](https://links.papareact.com/ua6)\n\n### Setup Tailwind for the project.\n\n\u003e A utility-first CSS framework packed with classes like flex, pt-4, text-center and rotate-90 that can be composed to build any design, directly in your markup.\n\n`npm install -D tailwindcss@latest postcss@latest autoprefixer@latest`\n\n- Add the lastest **jit** (just in time) compiler for the tailwind css configuration.\n\n- Create the configuration file for tailwindcss in the project.\n\n  \u003e generate your tailwind.config.js and postcss.config.js files:\n\n  - `npx tailwindcss init -p`\n\n- Create a CSS file if you don't already have one, and use the @tailwind directive to inject tailwind's base, components, and utilities styles.\n\n### Header \u0026 Navbar\n\n- While adding images from other domains to the application, the next.js should always be informed beforehand to use the resources of a particular domain. Create a `next.config.js` to create an array for the permitted domains to use resources.\n\n- lazy loading should be adapted as standard but default img html element to save network usage for unseen image elements at the bottom of the page.\n\n- for the global styles in the application, add the style to the directive `base` with **@layer \u0026 @apply** method.\n- install [heroicons package](https://github.com/tailwindlabs/heroicons) to use the icons \u0026 svg element.\n\n- The navbar contains the genres (categories) pulled from the REST API Tmdb.org. A util/requests.js to carry all functions to meet the requirements to make requests from the back-end api.\n  - create a env local file to hold all the confidential keys to the api on the local machine.\n  - These local env variables are pushed to github.\n- requests.js holds all the api request url made to the api.\n\n- Hide the scrollbar from the ui using a tailwind plugin package `tailwind-scrollbar-hide` and add it to the nav class(parent element class)\n- To add a fade tranparent effect on the last genre (of the list), add a self-closing div(className='relative') in the nav element (class='absolute') and add a background-gradient-to-left. To make it transparent, the [to] is left empty [to-colorCode].\n\n  - `\u003cdiv className=\"absolute top-0 r-0 bg-gradient-to-l from-[#06020A] h-10 w-1/12\" /\u003e`\n\n- Add a onClick function on the nav elements to create a query parameter in the main url.\n\n  - `/?genre=${key}`\n\n- create a serverside render function to get the server side rendered data first, before the client side data.\n- get the api key from the tmdb.org \u0026 load the env var to the next js. restart the server.\n\n- create a get request from the api using getServersideProps function, get the results \u0026 pass it as props to the client-side. The client side renders the pros (destructers it to results) to Results component.\n\nThis is a [Next.js](https://nextjs.org/) project bootstrapped with [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app).\n\n## Getting Started\n\nFirst, run the development server:\n\n```bash\nnpm run dev\n# or\nyarn dev\n```\n\nOpen [http://localhost:3000](http://localhost:3000) with your browser to see the result.\n\nYou can start editing the page by modifying `pages/index.js`. The page auto-updates as you edit the file.\n\n[API routes](https://nextjs.org/docs/api-routes/introduction) can be accessed on [http://localhost:3000/api/hello](http://localhost:3000/api/hello). This endpoint can be edited in `pages/api/hello.js`.\n\nThe `pages/api` directory is mapped to `/api/*`. Files in this directory are treated as [API routes](https://nextjs.org/docs/api-routes/introduction) instead of React pages.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftaurusilver7%2Fhulu-2.0","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftaurusilver7%2Fhulu-2.0","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftaurusilver7%2Fhulu-2.0/lists"}