Swift Chat is a real-time messaging platform developed using the Laravel framework. This project leverages Laravel’s capabilities along with WebSocket technology for seamless communication. It uses the Laravel Reverb library for handling WebSocket connections on the server side and Laravel Echo for client-side interactions, enabling a smooth, responsive chat experience. The application is designed as a Single Page Application (SPA) using Laravel Livewire, with Tailwind CSS providing a modern, responsive UI.
Real-Time Messaging: Swift Chat offers real-time communication using WebSocket technology, ensuring messages are delivered instantly across clients.
SPA Architecture: Built with Laravel Livewire to deliver a dynamic single-page application experience without reloading pages.
Responsive Design: Styled with Tailwind CSS for a clean, user-friendly interface across devices.
Server-Client Communication: Uses Laravel Reverb on the server and Laravel Echo on the client for efficient WebSocket communication.
Clone the Repository:
git clone https://github.com/habibpourmohammadi/swift-chat.git
cd swift-chat
Install Dependencies:
composer install
npm install
Environment Setup:
Copy the .env.example
file to .env
.
cp .env.example .env
Configure the database
WebSocket server settings.
php artisan reverb:install
Generate a new encryption key:
php artisan key:generate
Run Migrations:
php artisan migrate
Serve the Application:
php artisan serve
Compile assets (including Tailwind CSS):
npm run dev
Start Rever:
php artisan reverb:start