Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
Dashboard (phpukconference 2018)
Search
Freek Van der Herten
January 27, 2018
Programming
330
3
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Dashboard (phpukconference 2018)
Freek Van der Herten
January 27, 2018
More Decks by Freek Van der Herten
See All by Freek Van der Herten
Uncharted packages (ode aan de code)
freekmurze
0
77
Uncharted packages (Laravel Live Denmark)
freekmurze
0
270
I shall define this only once
freekmurze
0
500
An Introduction to Snapshot testing
freekmurze
0
600
Event Sourcing In Laravel
freekmurze
0
300
Building a realtime dashboard with Laravel Livewire (PHPKonf)
freekmurze
0
900
A tour behind the scenes of Oh Dear (PHP Benelux)
freekmurze
2
950
A practical look at multitenancy in Laravel
freekmurze
1
420
A practical look at multitenancy in Laravel (Laracon US)
freekmurze
0
810
Other Decks in Programming
See All in Programming
Jetpack Compose Mechanisms
skydoves
2
730
全ての永続トークンを、生まれる前に消し去りたい!
sylph01
1
310
contenteditable と日本語入力に向き合う
colorful12
0
190
機械に任せるテスト、人が見るテスト ⽣成AIで引き直した、運⽤保守フェーズの線引き
dske104
0
180
半永久的に提供し続けられるプライベートクラウドを目指して ― 利用者の認知負荷を抑えるAPI抽象化とハードウェア世代交代の基盤設計
tomokon
0
480
The Rails Doctrine Decade
koic
2
570
R8 の設定見直しでアプリサイズ削減
andpad
0
210
UPDATE をやめる — EF Core でマスタをバージョン管理する
panda728
PRO
0
1.2k
最近”作らせてる” ローカルAIアプリの話
akit37
0
460
golang-bob.pdf
iwatsukayura
0
130
AI が書く Go コードの品質を劇的に向上させる Linter: “declscope”
mpyw
0
490
Findy - エンジニア向け会社紹介/Findy Company Deck
findyinc
6
400k
Featured
See All Featured
Done Done
chrislema
187
17k
Let's Do A Bunch of Simple Stuff to Make Websites Faster
chriscoyier
508
140k
30 Presentation Tips
portentint
PRO
1
430
GraphQLの誤解/rethinking-graphql
sonatard
75
12k
The Success of Rails: Ensuring Growth for the Next 100 Years
eileencodes
47
8.4k
Groundhog Day: Seeking Process in Gaming for Health
codingconduct
0
400
How to make the Groovebox
asonas
2
2.5k
Un-Boring Meetings
codingconduct
0
450
Imperfection Machines: The Place of Print at Facebook
scottboms
270
14k
The agentic SEO stack - context over prompts
schlessera
0
970
How to train your dragon (web standard)
notwaldorf
96
6.9k
Leadership Guide Workshop - DevTernity 2021
reverentgeek
1
400
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
https://ohdearapp.com
Since 2003 Websites, applications and webshops Team 7 developers, 1
manager Specialization Laravel development
OPEN SOURCE SOFTWARE
https://spatie.be/en/opensource/laravel
Open source software ± 160 public repositories on GitHub ±
9 000 000 downloads total ± 1 000 000 downloads a month A lot of benefits: learning, writing quality documentation and tests, showing the quality of our work, eating our own dogfood https://murze.be/the-story-behind-our-open-source-efforts
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.6 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 Moarrr packages
Thank you! https://joind.in/talk/c2c10 https://speakerdeck.com/freekmurze/dashboard-phpukconference-2018 https://spatie.be/opensource/laravel https://murze.be https://ohdearapp.com
QUESTIONS?