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.
07a96fed160878ca04672230c94fceada91c2b7a
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.
- Create an Heroku project
- Push the app to Heroku
heroku git:remote -a chatline && git push heroku main
- Add a MySQL database with ClearDB
- Get ClearDB credentials, navigate to Settings > Config vars. The URL is in the form:
mysql://<username>:<password>@<host>/heroku_3b61f10a737bcca?reconnect=true
- 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";
- Open the new Heroku server in PHPMyAdmin and import
chatline.sql
Local Setup
- Clone the repository
- Install XAMPP
- Start the Apache and MySQL servers
- Create a new database in phpMyAdmin
- Import the
chatline.sqlfile into the database - Update the database credentials in
config.php - Copy the repository to the
htdocsfolder in the XAMPP directory - Open the app in a web browser using the URL
http://<your-localhost>/chatline/
Disclaimer
Based on this project.
Description
Languages
PHP
60.4%
CSS
21.2%
JavaScript
16.9%
Hack
1.5%