redrockdigital / rrd-api
Our in-house BoilerPlated API
Requires
- php: ^8.2
- illuminate/support: ^v9.0|^v10.0
- laravel/cashier: ^13.11
- laravel/octane: ^1.3
- laravel/passport: ^10.4
- laravel/telescope: ^4.14
- sentry/sentry-laravel: ^3.3.3
- spatie/laravel-csp: ^2.8
- spatie/laravel-tags: *
Requires (Dev)
- orchestra/testbench: ^6.0
- phpunit/phpunit: ^9.0
This package is auto-updated.
Last update: 2023-10-28 18:36:55 UTC
README
This is the API for the Red Rock Digital foundations. It is built using the Laravel framework.
Documentation
The documentation for the API can be found here.
Requirements
- PHP 8.2+
- MySQL 8+
- Composer 2+
Getting Started
In your project, run the following composer require:
composer require redrockdigital/api
Add the following to your config/app.php
providers array:
RedRockDigital\Api\RedRockApiServiceProvider::class,
Then you will then need to publish the config file(s):
php artisan vendor:publish --provider="RedRockDigital\Api\RedRockApiServiceProvider"
This will publish the following configs to config/base.php
, config/payments.php
. The routes, controllers, events, and everything in-between are all pre-registered within the above ServiceProvider. Meaning everything bar two commands, will run out of the box.
The two commands which should be ran to setup the API are:
Setup Command
This command will install all the frontend components, needed to build the frontend.
php artisan rrd:setup {--force : Force operation without interaction} {--reinstall : Force reinstall of the package}
Install Command
This command will install the API into your project. Doing the following, will migrate the database, seed the database, install passport keys, and seed database with testing data for local use.
php artisan rrd:install {--env= : The env to seed}