Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Speaker Deck
PRO
Sign in
Sign up
for free
Dashboard laraconus
Freek Van der Herten
July 25, 2017
Programming
4
1k
Dashboard laraconus
Freek Van der Herten
July 25, 2017
Tweet
Share
More Decks by Freek Van der Herten
See All by Freek Van der Herten
freekmurze
0
63
freekmurze
0
220
freekmurze
1
370
freekmurze
1
190
freekmurze
0
340
freekmurze
0
110
freekmurze
1
320
freekmurze
0
310
freekmurze
0
100
Other Decks in Programming
See All in Programming
saki4869
0
200
nanimonodemonai
2
1.4k
brunopulis
1
100
dulltz
0
540
pdone
0
220
line_developers_tw2
0
1.2k
akatsukinewgrad
0
220
jun0
3
690
kazaman97
0
210
makicamel
1
190
showwin
0
130
kgmyshin
0
240
Featured
See All Featured
tammielis
237
23k
andyhume
62
3.5k
vanstee
116
4.8k
lauravandoore
11
1.3k
garrettdimon
287
110k
phodgson
87
3.9k
hursman
106
9.2k
reverentgeek
168
7.2k
revolveconf
200
9.6k
3n
163
22k
smashingmag
283
47k
jensimmons
207
10k
Transcript
Creating a dashboard using Laravel , Vue and Pusher
About me Freek Van der Herten Partner & developer at
SPATIE @freekmurze https://murze.be
About me phpantwerp.be Dries Vints @driesvints Frederick Vanbrabant @TheEdonian
Since 2003 Websites, applications and webshops Team 4 developers, 1
manager Specialization Laravel development
OPEN SOURCE SOFTWARE
Open source software ± 150 packages on Packagist ± 4
000 000 downloads total, ± 500 000 downloads a month A lot of benefits: learning, writing quality documentation and tests, showing the quality of our work, eating our own dogfood
http://github-awards.com/users?type=world&language=php Open source software
https://spatie.be/opensource
WE ❤ POSTCARDS
Spatie Samberstraat 69D 2060 Antwerp Belgium
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
https://github.com/spatie/dashboard.spatie.be
HIGH LEVEL OVERVIEW
The dashboard is a single HTML page Displayed by a
full screen browser Without full page reload Each tile wil be updated by JavaScript Each tile has it’s own update frequency In short
Technology stack Laravel Pusher Vue.js
Laravel 5.4 Render the initial page Fetch data from external
API’s (scheduled) Broadcast events when new data has arrived Laravel
spatie/laravel-twitter-streaming-api spatie/laravel-google-calendar spatie/last-fm-now-playing spatie/packagist-api knplabs/github-api Laravel
Provides full-duplex communication channels over a single TCP connection Transporting
events from server to the browser In realtime Secure Paid service Pusher
WebSockets Transporting events from server to the browser In realtime
Secure Paid service Pusher
Transporting events from server to the browser In realtime Secure
Paid service Pusher Magic
Easy to learn JS Framework Each tile is a component
Listen for incoming events with Laravel Echo Update the tile Vue.js
None
DEMO
Grid system The clock tile The Packagist tile The Twitter
tile Topics
There will be some live coding We’ll use
an internet connection
DISPLAYING ON A TV
Raspberry Pi 2
Raspberry Pi 2 Powered by the USB port from the
TV Uses Raspbian Jessie Boots into Chromium 56 in fullscreen mode Setup
TRY IT OUT YOURSELF
Source code https://github.com/spatie/dashboard.spatie.be Blog post https://murze.be/2017/06/building-realtime-dashboard-powered- laravel-vue-2017-edition/ Documentation
WRAPPING UP
Credits Willem Van Bockstal @willemvbockstal Looks + grid system Sebastian
De Deyne @sebdedeyne Scrutinising + JS wizardry
https://github.com/tlaverdure/laravel-echo-server https://github.com/spatie/vue-save-state https://docs.spatie.be/laravel-uptime-monitor Moarrr packages
Thank you! https://speakerdeck.com/freekmurze/dashboard-laraconus https://spatie.be/opensource/laravel https://murze.be https://murze.be/newsletter
QUESTIONS?