https://github.com/hashirmeraj/real-time-chat-application
This project is a real-time chat application that allows users to create accounts, join chat rooms, or start private conversations. The application uses WebSocket technology to enable instant messaging between users. It also stores all messages in a MySQL database for future reference.
https://github.com/hashirmeraj/real-time-chat-application
css html javascript js mysql mysql-database php ratchet ratchet-php-server realtime-database realtimechat realtimechatapp tailwindcss websocket
Last synced: 3 months ago
JSON representation
This project is a real-time chat application that allows users to create accounts, join chat rooms, or start private conversations. The application uses WebSocket technology to enable instant messaging between users. It also stores all messages in a MySQL database for future reference.
- Host: GitHub
- URL: https://github.com/hashirmeraj/real-time-chat-application
- Owner: hashirmeraj
- Created: 2024-09-09T14:10:53.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2024-10-01T07:11:49.000Z (7 months ago)
- Last Synced: 2024-11-14T16:09:54.770Z (5 months ago)
- Topics: css, html, javascript, js, mysql, mysql-database, php, ratchet, ratchet-php-server, realtime-database, realtimechat, realtimechatapp, tailwindcss, websocket
- Language: PHP
- Homepage: https://www.linkedin.com/posts/hashir-meraj-dev1_realtimechat-websocket-php-activity-7246537430525235200-zwU7?utm_source=share&utm_medium=member_desktop
- Size: 3.01 MB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Real-Time Chat Application
This project is a real-time chat application that allows users to create accounts, join chat rooms, or start private conversations. The application uses WebSocket technology to enable instant messaging between users. It also stores all messages in a MySQL database for future reference.
## Features
- Create accounts and log in.
- Join chat rooms or initiate private conversations.
- Real-time messaging using WebSocket and the Ratchet library.
- Fully responsive design.
- All messages stored in a MySQL database.## Tech Stack
- **Frontend**: HTML, CSS, Tailwind, JavaScript
- **Backend**: PHP, MySQL
- **Real-Time Technology**: WebSocket, Ratchet library## Installation
### 1. Clone the Repository
```bash
git clone https://github.com/hashirmeraj/real-time-chat-application.git
cd real-time-chat-application
```### 2. Set Up the Database
- Import the `chat_application.php` file located in `/database` into your MySQL database.
- You can download the SQL file directly by [clicking here](./database/chat_application.php).### 3. Configure the Database Connection
- Open the `config.php` file and set your database credentials.```php
$host = 'localhost';
$db_name = 'chat_application';
$username = 'root';
$password = '';
```### 4. Start the WebSocket Server
Run the following command to start the WebSocket server using the Ratchet library:```bash
php path/to/your/server.php
```### 5. Launch the Application
- Open your browser and navigate to `http://localhost/your_project_folder/` to access the application.## License
This project is licensed under the MIT License.