This repository has been archived on 2025-12-11. You can view files and clone it. You cannot open issues or pull requests or push a commit.
2024-05-16 17:57:28 +03:00
2023-02-10 19:20:34 +02:00
2023-02-10 19:20:34 +02:00
2024-02-27 13:49:29 +02:00
2023-02-10 19:20:34 +02:00
2023-02-10 19:20:34 +02:00
2024-02-27 13:56:36 +02:00
2023-02-10 19:20:34 +02:00
2023-02-10 19:20:34 +02:00
2023-02-10 19:20:34 +02:00
2024-05-16 17:57:28 +03:00
2023-02-10 19:20:34 +02:00

ChatLine - Real-time Messaging App

ChatLine is a real-time messaging app that allows users to send and receive messages in real-time. Users can create an account, log in, and send messages to other users. The app is built using JavaScript, PHP, and MySQL.

Features

  • User authentication
  • Real-time messaging
  • User search
  • User online/offline status
  • User last seen status

Deployment to Heroku

The app is desgigned to be deployed on Heroku with ClearDB.

  1. Create an Heroku project
  2. Push the app to Heroku
heroku git:remote -a chatline && git push heroku main
  1. Add a MySQL database with ClearDB
  2. Get ClearDB credentials, navigate to Settings > Config vars. The URL is in the form:
mysql://<username>:<password>@<host>/heroku_3b61f10a737bcca?reconnect=true
  1. Configure PHPMyAdmin to connect to ClearDB by modifying ~\xampp\phpMyAdmin\config.inc.php:
/* Heroku remote server */
$i++;
$cfg["Servers"][$i]["host"] = <host>;
$cfg["Servers"][$i]["user"] = <username>;
$cfg["Servers"][$i]["password"] = <password>;
$cfg["Servers"][$i]["auth_type"] = "config";
  1. Open the new Heroku server in PHPMyAdmin and import chatline.sql

Local Setup

  1. Clone the repository
  2. Install XAMPP
  3. Start the Apache and MySQL servers
  4. Create a new database in phpMyAdmin
  5. Import the chatline.sql file into the database
  6. Update the database credentials in config.php
  7. Copy the repository to the htdocs folder in the XAMPP directory
  8. Open the app in a web browser using the URL http://<your-localhost>/chatline/

Disclaimer

Based on this project.

Description
Real-time messaging app using PHP and MySQL
Readme 52 KiB
Languages
PHP 60.4%
CSS 21.2%
JavaScript 16.9%
Hack 1.5%