Welcome to the Swiss Laravel Association website repository! This project is built using Laravel and serves as the official website for the Swiss Laravel Association. It is designed to provide information about the association, its events, and resources for the Laravel community in Switzerland.
- PHP 8.2 or higher
- Composer (for PHP dependencies)
- Node.js (for frontend assets)
- MySQL or SQLite (for database)
- Clone the repository:
git clone [email protected]:swiss-laravel-association/website.git - Install PHP dependencies:
composer install - Install Node.js dependencies:
npm ci - Set up the environment file:
cp .env.example .env- Update the
.envfile with your database credentials and other environment settings. - Ensure you have the correct
APP_URLset for your local environment. - If using SQLite, ensure the database file is writable.
- Update the
- Generate application key:
php artisan key:generate - Run migrations and seed the database:
php artisan migrate - Compile frontend assets:
npm run devornpm run prodfor production builds.
In your local environment, you can use the following command to seed your database with some initial data.
php artisan db:seedWe use Laravel Pint to fix code style issues. To run Pint, you can use the following command:
composer refactor:lintWe also use Rector to refactor the codebase. To run Rector, you can use the following command:
composer refactor:refactorYou can also run all refactoring tasks together with the following command:
composer refactorWe use Pest for testing. To run the tests, you can use the following command:
composer run test:pestYou can also run the entire test suite, including Linting, Refactoring, Type Checking, and Pest tests, with the following command:
composer testPlease see CONTRIBUTING for details.
Please review our security policy on how to report security vulnerabilities.