Skip to content

Roskus/gflix

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ed91ced · Feb 27, 2025

History

90 Commits
Feb 27, 2025
Feb 27, 2025
Feb 27, 2025
Feb 27, 2025
Feb 24, 2024
Mar 15, 2024
Apr 5, 2024
May 20, 2024
Feb 27, 2025
Dec 3, 2023
Feb 27, 2025
Feb 21, 2024
Dec 3, 2023
Apr 1, 2024
Dec 3, 2023
Dec 3, 2023
Feb 22, 2024
Feb 22, 2024
Mar 1, 2021
May 20, 2024
Dec 3, 2023
Apr 28, 2024
May 20, 2024
Apr 28, 2024
Feb 21, 2024
Feb 22, 2024
Dec 3, 2023
Dec 3, 2023
Dec 3, 2023
Dec 3, 2023

Repository files navigation

Gflix

Netflix clone Site based in Laravel Screenshoot

Technologies

  • PHP 8.2
  • Laravel 10
  • Twitter bootstrap
  • Postgres
  • OpenAdmin

Setup

Construct docker image

docker build -t gflix .

Run and access to php machine

docker run -p 80:80 -p 443:443 --name gflix -it gflix /bin/bash

For local development

Docker-compose

docker-compose build
docker-compose up -d

Utils

Online Subtitle format converter from .srt -> .vtt https://www.happyscribe.com/subtitle-tools/convert-srt-to-vtt

Covert subtitle with ffmpeg

ffmpeg -i halo_s01e05.srt halo_s01e05.vtt

Convert video format

ffmpeg -i halo_s01e05.avi halo_s01e05.mp4

Extract poster from video frame

ffmpeg -ss 00:04:12 -i wednesday.s01e01.mp4 -vframes 1 -q:v 2 screenshot.png

Fixing video encoding issues

Download HandBrake https://handbrake.fr Important: Check web optimized

Create Self-Signed SSL Certificate

sudo openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout ./etc/ssl/private/gflix.key -out ./etc/ssl/certs/gflix.crt

Admin

Create user

php artisan admin:create-user

Backup a PostgreSQL database

pg_dump -U postgres -d gflix > gflix.sql

Install postgres client

sudo apt-get install postgresql-client