Skip to content

Commit

Permalink
Slim L11 (#1212)
Browse files Browse the repository at this point in the history
* wip: slim L11 Skeleton

* chore: linting

* fix: handle loading of console commands

* style: add formatting on time played

* chore: allow full url

* chore: move to mariadb db connection
  • Loading branch information
iBotPeaches authored Mar 25, 2024
1 parent 751345c commit 4a93f8d
Show file tree
Hide file tree
Showing 48 changed files with 505 additions and 1,143 deletions.
42 changes: 26 additions & 16 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -2,35 +2,53 @@ APP_NAME=Laravel
APP_ENV=local
APP_KEY=
APP_DEBUG=true
APP_TIMEZONE=UTC
APP_URL=http://localhost

APP_LOCALE=en
APP_FALLBACK_LOCALE=en
APP_FAKER_LOCALE=en_US

APP_MAINTENANCE_DRIVER=file
APP_MAINTENANCE_STORE=database

BCRYPT_ROUNDS=12

LOG_CHANNEL=stack
LOG_STACK=single
LOG_DEPRECATIONS_CHANNEL=null
LOG_LEVEL=debug

DB_CONNECTION=mysql
DB_CONNECTION=mariadb
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=laravel
DB_USERNAME=root
DB_PASSWORD=

BROADCAST_DRIVER=log
CACHE_DRIVER=file
FILESYSTEM_DRIVER=local
QUEUE_CONNECTION=sync
SESSION_DRIVER=file
SESSION_LIFETIME=525600
SESSION_ENCRYPT=false
SESSION_PATH=/
SESSION_DOMAIN=null

BROADCAST_CONNECTION=log
FILESYSTEM_DISK=local
QUEUE_CONNECTION=sync

CACHE_STORE=database
CACHE_PREFIX=

MEMCACHED_HOST=127.0.0.1

REDIS_CLIENT=phpredis
REDIS_HOST=127.0.0.1
REDIS_PASSWORD=null
REDIS_PORT=6379

MAIL_MAILER=smtp
MAIL_HOST=mailhog
MAIL_PORT=1025
MAIL_MAILER=log
MAIL_HOST=127.0.0.1
MAIL_PORT=2525
MAIL_USERNAME=null
MAIL_PASSWORD=null
MAIL_ENCRYPTION=null
Expand All @@ -43,14 +61,6 @@ AWS_DEFAULT_REGION=us-east-1
AWS_BUCKET=
AWS_USE_PATH_STYLE_ENDPOINT=false

PUSHER_APP_ID=
PUSHER_APP_KEY=
PUSHER_APP_SECRET=
PUSHER_APP_CLUSTER=mt1

VITE_PUSHER_APP_KEY="${PUSHER_APP_KEY}"
VITE_PUSHER_APP_CLUSTER="${PUSHER_APP_CLUSTER}"

DOTAPI_DISABLED=false
DOTAPI_KEY=
DOTAPI_DOMAIN=https://grunt.api.dotapi.gg
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,14 @@ A docker-based infrastructure is available for development. If you wish to run d
### Setup
1. PHP8.2
1. Node + NPM installed
1. MariaDB 10.4+
1. MariaDB 10.6+
1. [Composer](https://getcomposer.org/) installed.
1. `cp .env.example .env`
1. `composer install`
1. `npm ci`
1. `php artisan key:generate`
1. `php artisan migrate`
1. `npm run dev`
1. `npm run build`
1. `php artisan serve`

### Contributions
Expand Down
43 changes: 0 additions & 43 deletions app/Console/Kernel.php

This file was deleted.

38 changes: 0 additions & 38 deletions app/Exceptions/Handler.php

This file was deleted.

8 changes: 2 additions & 6 deletions app/Http/Controllers/Controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,7 @@

namespace App\Http\Controllers;

use Illuminate\Foundation\Auth\Access\AuthorizesRequests;
use Illuminate\Foundation\Validation\ValidatesRequests;
use Illuminate\Routing\Controller as BaseController;

class Controller extends BaseController
abstract class Controller
{
use AuthorizesRequests, ValidatesRequests;
//
}
50 changes: 0 additions & 50 deletions app/Http/Kernel.php

This file was deleted.

17 changes: 0 additions & 17 deletions app/Http/Middleware/EncryptCookies.php

This file was deleted.

17 changes: 0 additions & 17 deletions app/Http/Middleware/PreventRequestsDuringMaintenance.php

This file was deleted.

19 changes: 0 additions & 19 deletions app/Http/Middleware/TrimStrings.php

This file was deleted.

28 changes: 0 additions & 28 deletions app/Http/Middleware/TrustProxies.php

This file was deleted.

17 changes: 0 additions & 17 deletions app/Http/Middleware/VerifyCsrfToken.php

This file was deleted.

3 changes: 3 additions & 0 deletions app/Models/GameTeam.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@
use App\Enums\Outcome;
use App\Models\Contracts\HasDotApi;
use App\Models\Traits\HasOutcome;
use App\Observers\GameTeamObserver;
use Database\Factories\GameTeamFactory;
use Illuminate\Database\Eloquent\Attributes\ObservedBy;
use Illuminate\Database\Eloquent\Collection;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
Expand Down Expand Up @@ -36,6 +38,7 @@
*
* @method static GameTeamFactory factory(...$parameters)
*/
#[ObservedBy(GameTeamObserver::class)]
class GameTeam extends Model implements HasDotApi
{
use HasFactory, HasOutcome;
Expand Down
3 changes: 3 additions & 0 deletions app/Models/Player.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,14 @@
use App\Models\Contracts\HasDotApi;
use App\Models\Pivots\MatchupPlayer;
use App\Models\Pivots\PersonalResult;
use App\Observers\PlayerObserver;
use App\Services\DotApi\Enums\Mode;
use App\Services\DotApi\InfiniteInterface;
use App\Support\Image\ImageHelper;
use App\Support\Session\SeasonSession;
use Carbon\Carbon;
use Database\Factories\PlayerFactory;
use Illuminate\Database\Eloquent\Attributes\ObservedBy;
use Illuminate\Database\Eloquent\Collection;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
Expand Down Expand Up @@ -71,6 +73,7 @@
*
* @method static PlayerFactory factory(...$parameters)
*/
#[ObservedBy(PlayerObserver::class)]
class Player extends Model implements HasDotApi, Sitemapable
{
use HasFactory;
Expand Down
Loading

0 comments on commit 4a93f8d

Please sign in to comment.