A Real time Chat application using Laravel 8.0 with jetstream & Inertia stack. You can configure the server port in the socketio-chat-inertia\resources\views\app.blade.php file at:
const socket = io("http://localhost:YOUR_PORT")
This minimal chat application is provided with all Laravel web security features (CSRF, SQL injection, XSS, ...) but it's a DEMO project so it may have out-of-date features that should not be exposed in production.
There's no end-to-end encryption between users conversations.
git clone https://github.com/SimoneC03/socketio-chat-inertia
cd socketio-chat-inertia
composer install
npm install
npm run dev
# or: npm run watch
Copy the .env.example file, rename to .env and insert your db details
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=socketio_chat_inertia
DB_USERNAME=root
DB_PASSWORD=
Create a new database called socketio_chat_inertia
or anything you've put in the DB_DATABASE key
php artisan migrate
php artisan serve
Laravel is a web application framework with expressive, elegant syntax. We believe development must be an enjoyable and creative experience to be truly fulfilling. Laravel takes the pain out of development by easing common tasks used in many web projects, such as:
- Simple, fast routing engine.
- Powerful dependency injection container.
- Multiple back-ends for session and cache storage.
- Expressive, intuitive database ORM.
- Database agnostic schema migrations.
- Robust background job processing.
- Real-time event broadcasting.
Laravel is accessible, powerful, and provides tools required for large, robust applications.
If you discover a security vulnerability within Laravel, please send an e-mail to Taylor Otwell via taylor@laravel.com. All security vulnerabilities will be promptly addressed.