Real time chat app.
Live Demo
For testing use account: [email protected], password: demonow
- Laravel 6.20.12
- Vue.js 2.0
- Bootstrap 4
- PHP 7
- Pusher
- Laravel Echo
Run composer install
Run yarn run production
The following files contain application specific configurations that should be modified or added
.env
- APP_NAME
- DB_CONNECTION
- DB_HOST
- DB_PORT
- DB_DATABASE
- DB_USERNAME
- DB_PASSWORD
- PUSHER_APP_ID
- PUSHER_APP_KEY
- PUSHER_APP_SECRET
- PUSHER_APP_CLUSTER
- BROADCAST_DRIVER=pusher
config/app.php
- version
- Enable App\Providers\BroadcastServiceProvider::class
- Copy all files from the
public
folder intopublic_html
on the host - Copy all files except files from
public
,node_modules
, andtests
into a new folder at the same level aspublic_html
, e.g.larachat
- Change both
require
paths inpublic_html\index.php
to point to the location above, e.g.require __DIR__.'/../larachat/vendor/autoload.php';
and$app = require_once __DIR__.'/../larachat/bootstrap/app.php';
- Modify the settings in
larachat\.env
to reflect production environment- APP_ENV=production
- APP_DEBUG=false
- APP_URL
- DB_CONNECTION
- DB_HOST
- DB_PORT
- DB_DATABASE
- DB_USERNAME
- DB_PASSWORD
- Ensure PHP version is set to 7.0 or above