CPHR BC Document Repository

Overview

The cphr-bc-doc-repository project is a Laravel web application. Its frontend uses Vue 3, Inertia.js, and Vite. Application source code and frontend dependencies are in the src/ directory; Docker and server configuration are at the repository root.

Technology

  • Backend: Laravel 12 and PHP 8.2 or newer
  • Frontend: Vue 3, Inertia.js, and Vite
  • Database: SQLite by default for local development; Docker Compose also provides PostgreSQL
  • Runtime: Apache and PHP in the Docker images

Local development

Install PHP dependencies and JavaScript packages, then configure the Laravel environment and start the application:

cd src
composer install
npm install
cp .env.example .env
php artisan key:generate
touch database/database.sqlite
php artisan migrate
composer run dev

The example environment uses SQLite. composer run dev starts the Laravel development server, queue worker, application logs, and Vite. The application source directory is also the working directory for these commands.

Repository layout

  • src/ — Laravel application, frontend code, and application tests
  • Dockerfile and Dockerfile.dev — container build definitions
  • docker-compose.yml — local application and PostgreSQL services
  • config/ — PHP, Apache security, and Supervisor configuration

Cache troubleshooting

If stale Laravel configuration or routes interfere with local development, run these commands from src/:

php artisan cache:clear
php artisan route:clear
php artisan config:clear
php artisan view:clear
php artisan clear-compiled