Skip to content
/ forum Public template

Forum is a web application where users can create threads, post replies, and engage in discussions on various topics.

Notifications You must be signed in to change notification settings

Queopius/forum

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

76 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Queopius Laravel / Developer

Build Status Build Status Build Status

Forum

A simple forum application built with Laravel.

Description

Forum is a web application where users can create threads, post replies, and engage in discussions on various topics.

Requirements

  • Laravel 8 (for default)
  • PHP 8.0
  • Composer
  • Redis
  • Algolia account (for search functionality)

Installation

  1. Clone the repository in SSH:
git clone [email protected]:Queopius/forum.git
  1. Navigate to the project directory:
cd forum
  1. Install composer dependencies:
composer install
  1. Copy the example environment file:
cp .env.example .env
  1. Generate application key:
php artisan key:generate
  1. Configure the database connection in the .env file.
  2. Configure Redis connection in the .env file:
REDIS_HOST=127.0.0.1
REDIS_PASSWORD=null
REDIS_PORT=6379
  1. Configure Algolia credentials in the .env file:
ALGOLIA_APP_ID=your_app_id
ALGOLIA_SECRET=your_secret
ALGOLIA_SEARCH=your_search_key
  1. Run migrations to create the database tables and Seeders:
php artisan migrate
php artisan db:seed
  1. Serve the application:
php artisan serve
  1. Access the application in your web browser at http://localhost:8000.

Running Tests

  • PHPUnit: Run PHPUnit tests with the following command:
./vendor/bin/phpunit

Static Analysis

  • 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

Enjoy

About

Forum is a web application where users can create threads, post replies, and engage in discussions on various topics.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published