Skip to content

💬 Real time Chat application using Laravel 8.0 with jetstream & Inertia stack

License

Notifications You must be signed in to change notification settings

simonecalabrese/socketio-chat-inertia

Repository files navigation

Introduction

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")

Security

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.

Installation

git clone https://github.com/SimoneC03/socketio-chat-inertia
cd socketio-chat-inertia
composer install
npm install
npm run dev
# or: npm run watch

Configure MySql Database

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 DB

Create a new database called socketio_chat_inertia or anything you've put in the DB_DATABASE key

Migrate tables

php artisan migrate

Serving on 8000 local port (127.0.0.1:8000)

php artisan serve

About Laravel

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:

Laravel is accessible, powerful, and provides tools required for large, robust applications.

Security Vulnerabilities

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.

About

💬 Real time Chat application using Laravel 8.0 with jetstream & Inertia stack

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published