From 07a96fed160878ca04672230c94fceada91c2b7a Mon Sep 17 00:00:00 2001 From: Andrew Trieu Date: Thu, 16 May 2024 17:57:28 +0300 Subject: [PATCH] Update README.md --- README.md | 25 +++++++++++++++++++++++-- 1 file changed, 23 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index c0bdf15..d45f26f 100644 --- a/README.md +++ b/README.md @@ -10,9 +10,30 @@ ChatLine is a real-time messaging app that allows users to send and receive mess - User online/offline status - User last seen status -## Deployment +## Deployment to Heroku -The app is deployed on Heroku. You can access the app [here](https://chatline-f5e4ccce6986.herokuapp.com/). +The app is desgigned to be deployed on Heroku with ClearDB. + +1. Create an Heroku project +2. Push the app to Heroku +```bash +heroku git:remote -a chatline && git push heroku main +``` +3. Add a MySQL database with ClearDB +4. Get ClearDB credentials, navigate to _Settings_ > _Config vars_. The URL is in the form: +```bash +mysql://:@/heroku_3b61f10a737bcca?reconnect=true +``` +5. Configure PHPMyAdmin to connect to ClearDB by modifying `~\xampp\phpMyAdmin\config.inc.php`: +```php +/* Heroku remote server */ +$i++; +$cfg["Servers"][$i]["host"] = ; +$cfg["Servers"][$i]["user"] = ; +$cfg["Servers"][$i]["password"] = ; +$cfg["Servers"][$i]["auth_type"] = "config"; +``` +6. Open the new Heroku server in PHPMyAdmin and import `chatline.sql` ## Local Setup