A simple forum application built with Laravel.
Forum is a web application where users can create threads, post replies, and engage in discussions on various topics.
- Laravel 8 (for default)
- PHP 8.0
- Composer
- Redis
- Algolia account (for search functionality)
- Clone the repository in SSH:
git clone [email protected]:Queopius/forum.git
- Navigate to the project directory:
cd forum
- Install composer dependencies:
composer install
- Copy the example environment file:
cp .env.example .env
- Generate application key:
php artisan key:generate
- Configure the database connection in the .env file.
- Configure Redis connection in the .env file:
REDIS_HOST=127.0.0.1
REDIS_PASSWORD=null
REDIS_PORT=6379
- Configure Algolia credentials in the .env file:
ALGOLIA_APP_ID=your_app_id
ALGOLIA_SECRET=your_secret
ALGOLIA_SEARCH=your_search_key
- Run migrations to create the database tables and Seeders:
php artisan migrate
php artisan db:seed
- Serve the application:
php artisan serve
- Access the application in your web browser at http://localhost:8000.
- PHPUnit: Run PHPUnit tests with the following command:
./vendor/bin/phpunit
- PHPStan (LaraStan): Analyze code with PHPStan for static analysis:
./vendor/bin/phpstan analyze
- Pint: Static Code Analysis With Laravel Pint
./vendor/bin/pint --preset psr12