Anonymous Chat is a web application for chatting with strangers, developed using PHP, Laravel, WebSockets, and Redis.
The application operates in real-time, allowing instant message exchange.
It also provides filtering options to find chat partners based on gender and age.
✔️ Real-time messaging
✔️ Anonymous communication without registration
✔️ Search for chat partners based on criteria
- Backend: PHP 8.1, Laravel 10.10, Redis 7.0.4, WebSockets
- Frontend: Node.js 20.17, Vite, Vue.js
Before installing, make sure you have the following installed:
- Apache 2.4
- PHP 8.1
- Redis 7.0.4
- Laravel 10.10
- Node.js 20.17
-
Clone the repository:
git clone https://github.com/kapeks/Anonymous-Chat.git
-
Install Composer dependencies:
composer install
This command will install all PHP dependencies specified in
composer.json. -
Install NPM dependencies:
npm install
This command will install all frontend dependencies specified in
package.json. -
Create and configure the
.envenvironment file
Copy.env.exampleto.envand configure the environment variables:cp .env.example .env php artisan key:generate
Example configuration for local development:
CACHE_DRIVER=redis SESSION_DRIVER=redis QUEUE_CONNECTION=redis REDIS_HOST=127.0.0.1 REDIS_PASSWORD=null REDIS_PORT=6379 BROADCAST_DRIVER=pusher PUSHER_APP_ID=local PUSHER_APP_KEY=local PUSHER_APP_SECRET=local PUSHER_HOST=127.0.0.1 PUSHER_PORT=6001 PUSHER_SCHEME=http PUSHER_APP_CLUSTER=mt1
-
Start Redis:
redis-server
-
Start the Laravel server:
php artisan serve
-
Start the WebSocket server:
php artisan websockets:serve
-
Start the queue worker:
php artisan queue:work
-
Run Vite for frontend development or production build:
- For development:
npm run dev
- For production:
npm run build
- For development:
This project is licensed under the MIT license.
📧 Email: scalp.profit@gmail.com