imsat / barikoi-test

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Test project for BariKoi

This project combines Laravel as the backend framework with Reverb for websocket server. Follow the instructions below to set up and run the project.

Prerequisites

Getting Start

  1. Clone the repository:

    https://github.com/imsat/barikoi-test.git
    
  2. Install Laravel dependencies:

    composer install
    
  3. Install Laravel dependencies:

    cp .env.example .env
    
  4. Update the database configuration in the .env file:

    DB_CONNECTION=mysql
    DB_HOST=your_database_host
    DB_PORT=your_database_port
    DB_DATABASE=your_database_name
    DB_USERNAME=your_database_username
    DB_PASSWORD=your_database_password
    
  5. Generate the application key:

    php artisan key:generate
    
  6. Generate the JWT secret:

    php artisan jwt:secret
    
  7. Run database migrations and seed data:

    php artisan migrate --seed
    
  8. Update your Redis configuration in the .env file:

    REDIS_CLIENT=phpredis
    REDIS_HOST=127.0.0.1
    REDIS_PASSWORD=null
    REDIS_PORT=6379
    
  9. Update your Laravel Reverb configuration in the .env file:

    REVERB_APP_ID=634432
    REVERB_APP_KEY=fgqyraal4g6fdjoszbwi
    REVERB_APP_SECRET=eu8udabmbg4turcywt0g
    REVERB_HOST="localhost"
    REVERB_PORT=8080
    REVERB_SCHEME=http
    
  10. Run this command for start websocket server:

    php artisan reverb:start
    
  11. Run this command for queue process:

    php artisan queue:work
    

Running the Application

  1. Run the Laravel development server:
    php artisan serve
    
  2. Access the application in your browser:

Open your browser and navigate to http://127.0.0.1:8000 or desired port show in your terminal.

About


Languages

Language:PHP 68.2%Language:Blade 31.0%Language:JavaScript 0.7%