Skip to content

Roskus/gflix

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