Package Data | |
---|---|
Maintainer Username: | dan-powell |
Maintainer Contact: | dan@dan-powell.uk (Dan Powell) |
Package Create Date: | 2017-04-27 |
Package Last Update: | 2017-05-27 |
Language: | CSS |
License: | MIT |
Last Refreshed: | 2024-11-10 15:04:22 |
Package Statistics | |
---|---|
Total Downloads: | 48 |
Monthly Downloads: | 0 |
Daily Downloads: | 0 |
Total Stars: | 0 |
Total Watchers: | 2 |
Total Forks: | 0 |
Total Open Issues: | 0 |
A browser-based MMO with jellies & sundry.
This software is pre-alpha, don't bother to use it just yet...
composer require dan-powell/jellies
config/app.php
// Jellies Service Provider
DanPowell\Jellies\JelliesServiceProvider::class,
// Third Party
Collective\Html\HtmlServiceProvider::class,
Krucas\Notification\NotificationServiceProvider::class,
config/app.php
// Jellies
// Third Party
'Form' => Collective\Html\FormFacade::class,
'Html' => Collective\Html\HtmlFacade::class,
'Notification' => Krucas\Notification\Facades\Notification::class,
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)
php artisan vendor:publish --tag='database'
php artisan migrate
config/auth.php
'providers' => [
'users' => [
'driver' => 'eloquent',
'model' => DanPowell\Jellies\Models\User::class,
],
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
];
app/Console/Kernel.php
protected function schedule(Schedule $schedule)
{
$schedule->command('incursion:encounters --queue')->everyFiveMinutes();
$schedule->command('user:actions --queue')->hourly();
}
php artisan vendor:publish --tag='database' --force
php artisan migrate
php artisan vendor:publish --tag='database' --force
database/seeds/DatabaseSeeder.php
$this->call('JelliesSeeder');
composer dump-autoload
php artisan db:seed
php artisan vendor:publish --tag='tests' --force
config/database.php
'testing' => [
...
'database' => 'testing',
...
],
test/functional.suite.yml
modules:
enabled:
- Laravel5:
environment_file: .env.testing
.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
php artisan migrate --database=testing
php ./vendor/bin/codecept run