w0bm.com is a fun modern website featuring many different kind of videos in webm format. It was initially thought as a z0r.de without flash, but already surpassed that in our opinion.
The page is build on top of the Laravel Framework.
- Clone this repository:
git clone https://github.com/w0bm/w0bm.com.git
- Cd into the directory:
cd w0bm.com
, run./composer.phar dump-autoload
and./composer.phar install --no-scripts
to install all the dependencies (make sure you have enough RAM for the installation, otherwise use swap) - Create a .env file inside of w0bm.com/ with your database information (Example) and set the
APP_KEY
withphp artisan key:generate
(it will automatically be added to the .env file if you already haveAPP_KEY=
in there) - Create a b/ directory such that your path looks like this:
w0bm.com/public/b
. Put at least 1 webm file in thepublic/b
directory named1.webm
- Modify
database/seeds/DatabaseSeeder.php
and uncomment all the different seeders. (Initially you'll need all) - Run
php artisan migrate
and thenphp artisan db:seed
- Run
php artisan tags
to initially tag all videos - Start the development server with
php artisan serve
- Check your website at
http://localhost:8000/1
- Log in with Username=admin and Password=password
Make your changes, test them locally (PLEASE!!! preferable write some unit tests aswell) and make a pull request.
Folder structure:
- Models:
app/Models/
- Routes:
app/Http/routes.php
- Controllers:
app/Http/Controllers
- Views:
resources/views
- JS and CSS:
public/{css,js}
- Database:
database/migrations
You must have the following tools installed so that w0bm is fully functional:
- FFmpeg (video encoding check + thumbnail generation)
- ImageMagick (thumbnail generation)
Dev dependencies:
- npm (for transpiling w0bmscript.js to w0bmscript.min.js with babel)
To transpile and minify your modified w0bmscript.js you need to have this projects dependencies installed (dependencies installable with npm i
). Then run npm run build
.
The Laravel framework is open-sourced software licensed under the MIT license