Cihan9946 / laraveRealChat-

laraveRealChat

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[EN]

Laravel Live Chat Application

This project is a live chat application developed using the Laravel framework. The application allows users to send and receive messages in real-time and can be easily integrated into other projects.

Features

  • Real-Time Messaging: Instant message sending and receiving between users.
  • User Authentication: Integrated with Laravel's built-in authentication system.
  • Session Management: Authenticated users can join chat rooms or engage in one-on-one chats.
  • WebSocket Support: WebSocket integration for faster and uninterrupted message delivery.
  • Responsive UI: User-friendly interface compatible with all devices.

Requirements

  • PHP >= 7.4
  • Laravel >= 8.x
  • MySQL or a similar database
  • Composer
  • Node.js and NPM

Installation

  1. Clone the Project Repository:

    git clone https://github.com/username/laravel-live-chat.git
    cd laravel-live-chat
  2. Install Dependencies:

    composer install
    npm install
    npm run dev
  3. Configure the .env File: Rename the .env.example file to .env in the project directory and configure the following settings:

    APP_NAME=LaravelLiveChat
    APP_ENV=local
    APP_KEY=base64:randomgeneratedkey=
    APP_DEBUG=true
    APP_URL=http://localhost
    
    DB_CONNECTION=mysql
    DB_HOST=127.0.0.1
    DB_PORT=3306
    DB_DATABASE=live_chat_db
    DB_USERNAME=root
    DB_PASSWORD=yourpassword
  4. Run Database Migrations:

    php artisan migrate
  5. Start the WebSocket Server: If you have installed Laravel Echo Server or a similar WebSocket server, start the server with the following command:

    php artisan serve
    npm run websocket
  6. Launch the Application: The application should now be running at http://localhost:8000. Visit this URL in your browser to test the live chat application.

Usage

  • Once the application is running, log in or register a new account to access the chat system.
  • Click on any user or start a new chat to send messages.
  • Messages will be instantly delivered to the other user.

Development

  • WebSocket Server: Customize the WebSocket settings in the resources/js/bootstrap.js file according to your needs.
  • UI Customization: Personalize the interface by modifying the Blade templates in the resources/views directory.
  • Adding New Features: Easily add new features using Laravel's powerful ORM and event system.

Contributing

If you'd like to contribute, please fork the repository and submit a pull request. We appreciate any contributions!

License

This project is licensed under the MIT License. For more information, see the LICENSE file.

[TR]

Laravel Live Chat Uygulaması

Bu proje, Laravel framework kullanılarak geliştirilmiş bir canlı sohbet (live chat) uygulamasıdır. Bu uygulama, kullanıcıların gerçek zamanlı olarak birbirleriyle mesajlaşmasını sağlar ve basit bir şekilde entegre edilebilir.

Özellikler

  • Gerçek Zamanlı Mesajlaşma: Kullanıcılar arasında anında mesaj gönderimi ve alımı.
  • Kullanıcı Doğrulama: Laravel'in dahili kullanıcı doğrulama sistemiyle entegre.
  • Oturum Yönetimi: Oturum açan kullanıcılar, sohbet odalarına veya bireysel sohbetlere katılabilir.
  • WebSocket Desteği: Daha hızlı ve kesintisiz mesaj iletimi için WebSocket entegrasyonu.
  • Responsive Arayüz: Tüm cihazlarla uyumlu kullanıcı dostu arayüz.

Gereksinimler

  • PHP >= 7.4
  • Laravel >= 8.x
  • MySQL veya benzeri bir veritabanı
  • Composer
  • Node.js ve NPM

Kurulum

  1. Proje Dosyalarını Klonlayın:

    git clone https://github.com/kullanici_adi/laravel-live-chat.git
    cd laravel-live-chat
  2. Gerekli Bağımlılıkları Kurun:

    composer install
    npm install
    npm run dev
  3. .env Dosyasını Yapılandırın: Proje klasöründeki .env.example dosyasını .env olarak yeniden adlandırın ve aşağıdaki ayarları yapılandırın:

    APP_NAME=LaravelLiveChat
    APP_ENV=local
    APP_KEY=base64:randomgeneratedkey=
    APP_DEBUG=true
    APP_URL=http://localhost
    
    DB_CONNECTION=mysql
    DB_HOST=127.0.0.1
    DB_PORT=3306
    DB_DATABASE=live_chat_db
    DB_USERNAME=root
    DB_PASSWORD=yourpassword
  4. Veritabanı Migrasyonlarını Çalıştırın:

    php artisan migrate
  5. WebSocket Sunucusunu Başlatın: Laravel Echo Server veya benzeri bir WebSocket sunucusu kurduysanız, şu komutu çalıştırarak sunucuyu başlatın:

    php artisan serve
    npm run websocket
  6. Uygulamayı Başlatın: Artık uygulama http://localhost:8000 adresinde çalışır durumda olacaktır. Tarayıcınızda bu adresi ziyaret ederek canlı sohbet uygulamasını deneyebilirsiniz.

Kullanım

  • Uygulamayı başlattıktan sonra, giriş yaparak veya yeni bir hesap oluşturarak sisteme giriş yapabilirsiniz.
  • Mesaj göndermek için herhangi bir kullanıcıya tıklayın veya yeni bir sohbet başlatın.
  • Gönderilen mesajlar anında diğer kullanıcıya iletilecektir.

Geliştirme

  • WebSocket Sunucusu: resources/js/bootstrap.js dosyasındaki WebSocket ayarlarını ihtiyaçlarınıza göre özelleştirebilirsiniz.
  • UI Özelleştirme: resources/views dizinindeki Blade şablonlarıyla arayüzü kişiselleştirebilirsiniz.
  • Yeni Özellikler: Laravel'in güçlü ORM yapısı ve olaylar sistemi ile kolayca yeni özellikler ekleyebilirsiniz.

Katkıda Bulunma

Katkıda bulunmak isterseniz, lütfen bir fork yapın ve bir pull request gönderin. Katkılarınızdan memnuniyet duyarız!

Lisans

Bu proje MIT lisansı altında lisanslanmıştır. Daha fazla bilgi için LICENSE dosyasını inceleyin.

About

laraveRealChat


Languages

Language:PHP 51.8%Language:Blade 34.4%Language:CSS 9.2%Language:SCSS 3.8%Language:JavaScript 0.8%