A demo application (a small CMS) with Laravel 11.
- Build the docker image with
docker compose build
. - Copy the
.env.local
file to.env
. - Once the docker container has finished building, run
docker compose up -d
. - Install the composer dependencies with
docker/composer install
- Run the migrations and seeders with
docker/artisan migrate
anddocker/artisan db:seed
, then both commands again in the testing env with the--env=testing
option
The site is available via a browser at localhost:8084
. if needed change the port in the compose.yaml
file.
The tests will run with docker/artisan test
.
The seeders contain 3 users that you can login with:
regular@example.com
, passwordregular
writer@example.com
, passwordwriter
admin@example.com
, passwordadmin