https://github.com/bitfumes/real-time-single-page-forum-app
Lets use Pusher, Laravel, Vuejs, JWT, Vuetify, Markdown on this project to create something awesome
https://github.com/bitfumes/real-time-single-page-forum-app
Last synced: 2 months ago
JSON representation
Lets use Pusher, Laravel, Vuejs, JWT, Vuetify, Markdown on this project to create something awesome
- Host: GitHub
- URL: https://github.com/bitfumes/real-time-single-page-forum-app
- Owner: bitfumes
- Created: 2018-02-23T16:37:21.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2023-01-04T15:10:29.000Z (over 2 years ago)
- Last Synced: 2024-04-15T04:01:10.448Z (about 1 year ago)
- Language: PHP
- Size: 3.53 MB
- Stars: 63
- Watchers: 8
- Forks: 55
- Open Issues: 33
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# This is a real time single page forum app.
## We are going to use Pusher, Laravel, Vuejs. Vuetify, JWT, and markdown
This project is the source code of a Udemy course, you can get this course with discount coupon from [here](https://goo.gl/mB6ssR)
## Installation
Clone this repository
```bash
git clone [email protected]:bitfumes/real-time-single-page-forum-app.git
```Go inside the directory
```bash
cd real-time-single-page-forum-app
```Now install composer
```bash
composer install
```Generate key on .env file
```bash
cp .env.example .env
php artisan key:generate
```## Setting for Pusher
Go to .env file and change Broadcast drive to pusher
```
BROADCAST_DRIVER=pusher
```and also give credentials of your pusher on .env file
```
PUSHER_APP_ID=xxxxxx
PUSHER_APP_KEY=xxxxxxxxxxxxxxxxxxxx
PUSHER_APP_SECRET=xxxxxxxxxxxxxxxxxxxxxx
PUSHER_APP_CLUSTER=xxx
```open bootstrap.js file and provide pusher key there also.
```javascript
window.Echo = new Echo({
broadcaster: 'pusher',
key: "xxxxxxxxxxxxxxxxxxxxx",
cluster: "xxx",
encrypted: true,
...
```## Jobs table
_As this project uses queue so we need to settings related to that also._
Now make changes for queue driver on .env file
```
QUEUE_DRIVER=database
```Generate jobs table and migrate it
```bash
php artisan queue:table
php artisan migrate
```Now we have jobs table, and to make system real time, we need to dispatch queued events.
So lets start queue worker for that.
```bash
php artisan queue:work
```keep this running.
_For any query, contact [email protected]_