Skip to content

Benno1308/w0bm.com

 
 

Repository files navigation

w0bm.com

IRC Chat License

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.

Installing

  1. Clone this repository: git clone https://github.com/w0bm/w0bm.com.git
  2. 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)
  3. Create a .env file inside of w0bm.com/ with your database information (Example) and set the APP_KEY with php artisan key:generate (make sure you don't have any line containing APP_KEY= in your .env first - or set it to APP_KEY=SomeRandomStringWith32Characters)
  4. Create a b/ directory such that your path looks like this: w0bm.com/public/b. Put at least 1 webm file in the public/b directory named 1.webm
  5. Modify database/seeds/DatabaseSeeder.php and uncomment all the different seeders. (Initially you'll need all)
  6. Run php artisan migrate and then php artisan db:seed
  7. Run php artisan tags to initially tag all videos
  8. Start the development server with php artisan serve
  9. Check your website at http://localhost:8000/1
  10. Log in with Username=admin and Password=password

Contributing

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

Dependencies

You must have the following tools installed so that w0bm is fully functional:

  • FFmpeg (video encoding check + thumbnail generation)
  • ImageMagick (thumbnail generation)

Dev dependencies:

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.

License

The Laravel framework is open-sourced software licensed under the MIT license

Releases

No releases published

Packages

No packages published

Languages

  • PHP 80.6%
  • HTML 10.1%
  • JavaScript 9.3%