You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+51-4Lines changed: 51 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -38,13 +38,60 @@ Install the dependencies and run the project using:
38
38
npm i && npm run dev
39
39
```
40
40
41
-
##Broadcasting Directory
41
+
### Docker
42
42
43
-
This project has a server-side part please take a look at the next section
43
+
To work with Docker please navigate to the [backend project](https://github.com/themustafaomar/vue-starter-server) and run the following command:
44
44
45
-
As for broadcasting we're using the offical reverb websocket section.
45
+
```bash
46
+
./vendor/bin/sail up --build
47
+
```
48
+
49
+
You can call sail directly if you have it installed globally with the following command, more information about sail please visit the offical [documentation](https://laravel.com/docs/10.x/sail).
50
+
51
+
```bash
52
+
sail up --build
53
+
```
54
+
55
+
This will run the frontend and the backend without doing anything, you'll just need to run the migrations:
56
+
57
+
```bash
58
+
sail artisan migrate --seed
59
+
```
60
+
61
+
#### Broadcasting
62
+
63
+
As for broadcasting we're using the offical Reverb websocket server, for more information about Reverb please visit the offical documentation: https://laravel.com/docs/10.x/reverb
46
64
47
-
For more information about Reverb please visit the offical website: https://laravel.com/docs/reverb
65
+
Once you run `sail up` in your terminal the websocket server will run automatically using supervisor which I already done it for you, it's configured in ./docker/8.3/supervisord.conf this is what it looks like:
I chose not to add laravel worker configuration for you, I prefer running the following command each time because I need to restart the queues a lot, however this is the supervisor worker configuration.
0 commit comments