Public repository for my website https://www.johanvanhelden.com
Before you begin, ensure you have the following installed:
- PHP 8.3
- Composer 2
- NVM with Node 22
- MySQL 5.7
Follow these steps to set up the application for production:
- Copy the
.env.example
to.env
. - Install dependencies by running
composer install --no-dev
. - Set up a new key for the application with
artisan key:generate
. - Update the
.env
file with the correct app and other configurations. - Create a symbolic link for storage with
artisan storage:link
. - Build assets with
make assets
.
Follow these steps to set up the application for development:
- Ensure Dockerhero is running
- Ensure the
dockerhero-nginx
repository is cloned locally, in the same folder where this project is cloned (e.g.,~/projects/
). - Create a database and then choose one of the following options:
- Ensure the database is set up with the credentials that are in the
.env.example
- Copy the the
.env.example
to.env
- Ensure the database is set up with the credentials that are in the
- Run
make init
Bootstraps the application and runs the tests.
make test
Generates a test coverage report.
Please install pcov first:
sudo apt install php-pcov
make test-coverage
If you discover any security-related issues, please email [email protected] instead of using the issue tracker.
GNU General Public License v3.0 (gpl-3.0). Please see the License File for more information.