The Datascribe project back-end.
The project requires PHP 8.0 as well as Composer to be installed.
composer install --ignore-platform-reqs
cp .env.example .env
./vendor/bin/sail up -d
./vendor/bin/sail bash
rm -rf vendor && composer install
exit
./vendor/bin/sail artisan key:generate
./vendor/bin/sail artisan jwt:secret
To destroy the existing database and start fresh:
./vendor/bin/sail artisan migrate:fresh
To seed the database with test data:
./vendor/bin/sail artisan db:seed
NOTE: In order to be able to seed the data, you need to modify your .env file and set your application environment to the following APP_ENV=local
or APP_ENV=development
.
You can login using the following user account:
- Username: **datascribe@scio.systems**
- Password: **scio**
To link the storage for files:
./vendor/bin/sail artisan storage:link
NOTE: The storage for files should be linked in order for the backend to be able to serve files publicly.
To change the queue driver to redis, add the following settings:
QUEUE_CONNECTION=redis
REDIS_HOST=redis
To execute the test suites run:
./vendor/bin/sail artisan test
./vendor/bin/sail down
If you add a dependency, _ide_helper.php
will be auto-regenerated. If you change a model definition please run:
php artisan ide-helper:models
and type no
to update the model autocompletion file (_ide_helper_models.php
).