- Clone the project to your system:
git clone https://github.com/dongido001/laravel-one-to-one-stream-chat.git
-
Install dependencies
a. PHP dependencies
composer install
b. JavaScript dependencies
yarn install
-
Run build
yarn run dev
- Set up the database
cp .env.example .env
a. Then update the .env
file with your correct database details.
b. Update your Stream Chat API key
STREAM_API_KEY=<YOUR STREAM API KEY>
STREAM_API_SECRET=<YOUR STREAM API SECRET>
MIX_STREAM_API_KEY="${STREAM_API_KEY}"
MIX_STREAM_API_SECRET="${STREAM_API_SECRET}"
- Run migration
php artisan migrate
- Serve the app
php artisan serve
Now visit the development URL to start chatting: http://localhost:8000