shogo23/yougerv

Is a video streaming website created by [Gervic](https://www.facebook.com/gervic23) as part of portfolio written on CodeIgniter 4 Framework.

v1.08 2020-07-08 14:21 UTC

This package is auto-updated.

Last update: 2024-03-28 12:23:31 UTC


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

From Github

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