shogo23 / yougerv
Is a video streaming website created by [Gervic](https://www.facebook.com/gervic23) as part of portfolio written on CodeIgniter 4 Framework.
Installs: 6
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Type:project
pkg:composer/shogo23/yougerv
Requires
- php: >=7.2
 - ext-curl: *
 - ext-intl: *
 - ext-json: *
 - kint-php/kint: ^3.3
 - laminas/laminas-escaper: ^2.6
 - nesbot/carbon: ^2.32
 - php-ffmpeg/php-ffmpeg: ^0.16.0
 - psr/log: ^1.1
 
Requires (Dev)
- codeigniter4/codeigniter4-standard: ^1.0
 - mikey179/vfsstream: 1.6.*
 - phpunit/phpunit: ^8.5
 - squizlabs/php_codesniffer: ^3.3
 
README
Is a video streaming website created by Gervic as part of portfolio written on CodeIgniter 4 Framework.
System Requirements
- PHP 7.0 or highter
 - MYSQL or MARIADB
 - or much better you use XAMPP for windows users.
 - FFMPEG
 - Node Package Manager (npm) from Nodejs
 - Composer
 
Installation
Download from Composer
$ composer create-project shogo23/yougerv
Clone from Github
$ git clone https://github.com/shogo23/yougerv.git
Clone from Bitbucket
$ git clone https://gervic23@bitbucket.org/gervic23/ci4.git
Or Download manualy
Project Setup
Database
- Create a database any name you want.
 - Rename env file to .env from root directory.
 - Open .env file with your text editor. Find the database section and fill up your database credentials.
 
#-------------------------------------------------------------------- # DATABASE #-------------------------------------------------------------------- database.default.hostname = localhost database.default.database = ci4 database.default.username = root database.default.password = root
Database Migration and Seeding
Open your command terminal and run the following commands. This will create database tables and data.
$ php spark migrate
$ php spark db:seed MainSeeder
Setting up FFMPEG
Open .env file and locate the path of ffmpeg.exe and ffprobe.exe. This is my configuration...
# FFMPEG CONFIGURATION. ffmpeg.binaries = C:\ffmpeg-20200420-cacdac8-win64-static\bin\ffmpeg.exe ffprobe.binaries = C:\ffmpeg-20200420-cacdac8-win64-static\bin\ffprobe.exe
Setting up Required PHP and Javascript Libraries.
Setting up PHP Libraries (If you downloaded this project from composer, there is no need for this).
$ composer install
Setting up Javascript Libraries.
$ npm install
Setting up app.js and app.css bundle files. (/public/dist)
$ npm run production
Virtual Hosting
Open C:\Windows\system32\divers\etc\host and add this...
127.0.0.1 yougerv.test
Open C:\xampp\apache\conf\extra\httpd-vhost.conf if your are a xampp user and add this configuration.
<VirtualHost *:80> ServerAdmin youremail@email.com DocumentRoot "C:/xampp/htdocs/yougerv/public" ServerName yougervtest ServerAlias yougervtest ErrorLog "C:/xampp/htdocs/logs/error.log" CustomLog "C:/xampp/htdocs/logs/error.log" common </VirtualHost>
Setting up $baseURL
Open /App/Config/App.php and change the value $baseURL to 'http://youegerv.test'
Restart apache2 and now you can access the website at http://yougerv.test
User Accounts
Here are the following usernames. (Password for all accounts: enduser)
- gervic23
 - serah23
 - claire23
 - yuel23
 - terra23
 - tifa23
 - vanille23
 - yuffie
 - rydia23
 - lumina23
 - garnet23
 
Contact Author
Email me at gervic@gmx.com or message me on facebook at https://www.facebook.comn/gervic23