2017 © Pedro Peláez
 

library jellies

A jellyrific MMO game for Laravel 5

image

dan-powell/jellies

A jellyrific MMO game for Laravel 5

  • Sunday, May 28, 2017
  • by dan-powell
  • Repository
  • 1 Watchers
  • 0 Stars
  • 41 Installations
  • CSS
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

Jellies

A browser-based MMO with jellies & sundry., (*1)

WIP

This software is pre-alpha, don't bother to use it just yet..., (*2)

Install

Install using composer

composer require dan-powell/jellies, (*3)

Add service providers to config/app.php

// Jellies Service Provider
DanPowell\Jellies\JelliesServiceProvider::class,

// Third Party
Collective\Html\HtmlServiceProvider::class,
Krucas\Notification\NotificationServiceProvider::class,

Add aliases to config/app.php

// Jellies

// Third Party
'Form' => Collective\Html\FormFacade::class,
'Html' => Collective\Html\HtmlFacade::class,
'Notification' => Krucas\Notification\Facades\Notification::class,

Add middleware to app/Http/Kernel.php

protected $middlewareGroups = [
    'web' => [
        ...
        \Illuminate\Session\Middleware\StartSession::class,
        \Krucas\Notification\Middleware\NotificationMiddleware::class,

Kernel middleware array (must be placed after 'Illuminate\Session\Middleware\StartSession' middleware), (*4)

Publish assets

php artisan vendor:publish --tag='database'

Run migrations

php artisan migrate

Change default auth model in config/auth.php

'providers' => [
    'users' => [
        'driver' => 'eloquent',
        'model' => DanPowell\Jellies\Models\User::class,
    ],

Add command classes to app/Console/Kernel.php

use DanPowell\Jellies\Console\Commands\Incursion\IncursionProcessEncounters;
use DanPowell\Jellies\Console\Commands\User\UserAddAction;
use DanPowell\Jellies\Console\Commands\User\UserAttack;

class Kernel extends ConsoleKernel
{
    protected $commands = [
        IncursionProcessEncounters::class,
        UserAddAction::class,
        UserAttack::class
    ];

Add scheduled tasks to app/Console/Kernel.php

protected function schedule(Schedule $schedule)
{
    $schedule->command('incursion:encounters --queue')->everyFiveMinutes();
    $schedule->command('user:actions --queue')->hourly();
}

Update

publish assets

php artisan vendor:publish --tag='database' --force

migrations

php artisan migrate

Seeding

publish database

php artisan vendor:publish --tag='database' --force

Add seeder to database/seeds/DatabaseSeeder.php

$this->call('JelliesSeeder');

Seed

composer dump-autoload
php artisan db:seed

Testing

Publish tests

php artisan vendor:publish --tag='tests' --force

Add testing database to config/database.php

    'testing' => [
        ...
        'database'  => 'testing',
        ...
    ],

Add modules to test/functional.suite.yml

    modules:
      enabled:
        - Laravel5:
            environment_file: .env.testing

Create .env.testing

    APP_ENV=testing
    APP_DEBUG=true
    APP_KEY=

    BASE_URL=

    DB_HOST=localhost
    DB_DATABASE=testing
    DB_USERNAME=homestead
    DB_PASSWORD=secret

    CACHE_DRIVER=file
    SESSION_DRIVER=file

Migrate

php artisan migrate --database=testing

Run tests

php ./vendor/bin/codecept run

The Versions

28/05 2017

dev-master

9999999-dev

A jellyrific MMO game for Laravel 5

  Sources   Download

MIT

The Requires

 

The Development Requires

by Dan Powell

laravel game mmo

13/05 2017

v0.2.0

0.2.0.0

A jellyrific MMO game for Laravel 5

  Sources   Download

MIT

The Requires

 

The Development Requires

by Dan Powell

laravel game mmo

01/05 2017

v0.1.0

0.1.0.0

A jellyrific MMO game for Laravel 5

  Sources   Download

MIT

The Requires

 

The Development Requires

by Dan Powell

laravel game mmo