Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Creating a dashboard (phpworld)
Search
Freek Van der Herten
November 14, 2016
Technology
600
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Creating a dashboard (phpworld)
Freek Van der Herten
November 14, 2016
More Decks by Freek Van der Herten
See All by Freek Van der Herten
Uncharted packages (ode aan de code)
freekmurze
0
74
Uncharted packages (Laravel Live Denmark)
freekmurze
0
270
I shall define this only once
freekmurze
0
490
An Introduction to Snapshot testing
freekmurze
0
590
Event Sourcing In Laravel
freekmurze
0
290
Building a realtime dashboard with Laravel Livewire (PHPKonf)
freekmurze
0
890
A tour behind the scenes of Oh Dear (PHP Benelux)
freekmurze
2
940
A practical look at multitenancy in Laravel
freekmurze
1
410
A practical look at multitenancy in Laravel (Laracon US)
freekmurze
0
800
Other Decks in Technology
See All in Technology
20260903 Tokyo Jazug Night #62 | Azure エンジニアよ、 その環境は本当にセキュアか?
olivia_0707
1
330
AIで実装は速くなった。なのにプロダクトは速くならない。職能の壁を越えて価値のフローを設計する
nwiizo
0
410
[RSJ26] AnoleVLA: Lightweight Vision-Language-Action Model with Deep State Space Models for Mobile Manipulation
keio_smilab
PRO
0
110
Does an AI Watermark Survive Translation?
machinetranslation
0
520
Introduction to Sansan for Engineers / エンジニア向け会社紹介
sansan33
PRO
6
77k
V8コントリビュート超入門
riyaamemiya
0
110
Digitization部 紹介資料
sansan33
PRO
2
7.8k
Jetpack Compose で挑む新聞紙面UI ─ 複合ジェスチャー・ポリゴン記事領域・適応的ページ構成という3つの壁/droidkaigi2026
nikkei_engineer_recruiting
0
130
VPCでもFloatingIPを使いたいんだ
y_kotani
1
140
書籍『生成AIの安全性入門』の入門
wataoka
0
150
Genie Code ワークショップ 応用編 / Genie-Code-Workshop-advanced
databricksjapan
PRO
0
250
人気商品が「ちゃんと買える」をつくる ー ECの負荷改善
ykagano
1
190
Featured
See All Featured
4 Signs Your Business is Dying
shpigford
187
23k
The Language of Interfaces
destraynor
162
27k
What does AI have to do with Human Rights?
axbom
PRO
1
2.3k
Neural Spatial Audio Processing for Sound Field Analysis and Control
skoyamalab
0
440
SEO Brein meetup: CTRL+C is not how to scale international SEO
lindahogenes
1
2.9k
Build your cross-platform service in a week with App Engine
jlugia
234
19k
JAMstack: Web Apps at Ludicrous Speed - All Things Open 2022
reverentgeek
1
590
Groundhog Day: Seeking Process in Gaming for Health
codingconduct
0
320
Making Projects Easy
brettharned
120
6.7k
HU Berlin: Industrial-Strength Natural Language Processing with spaCy and Prodigy
inesmontani
PRO
0
680
Public Speaking Without Barfing On Your Shoes - THAT 2023
reverentgeek
1
550
Code Review Best Practice
trishagee
74
20k
Transcript
Creating a dashboard with Laravel, Vue and Pusher
About me Freek Van der Herten Partner & developer at
SPATIE @freekmurze https://murze.be
Since 2003 Websites, applications and webshops Team 4 developers, 1
manager Specialization Laravel development
OPEN SOURCE SOFTWARE
Open source software ± 80 packages on Packagist + 1
200 000 downloads total, ±200 000 downloads a month A lot of benefits: learning, forced to write documentation and tests, showing the quality of our work, eating our own dogfood
https://spatie.be/opensource
OUR OFFICE
None
None
None
None
None
https://github.com/spatie/dashboard.spatie.be
None
None
None
None
None
None
None
None
None
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.3 Render the initial page Fetch data from external
API’s (scheduled) Broadcast events when new data has arrived Laravel
spatie/laravel-google-calendar spatie/last-fm-now-playing spatie/packagist-api graham-campbell/github 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
Lot of ♥ from the Laravel community Easy to learn
Each tile is a component Listen for incoming events Update the tile Vue 2 Vue.js
DEMO
Grid system The clock tile The Packagist 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 51 in fullscreen mode Setup
TRY IT OUT YOURSELF
Source code https://github.com/spatie/dashboard.spatie.be Blog posts https://murze.be/2016/06/building-dashboard-using-laravel-vue https://murze.be/2016/06/grid-layout-dashboard/ Documentation
ROUND UP
https://laravel.com https://pusher.com https://vuejs.com https://vuecasts.com Interesting links
https://www.geckoboard.com/ http://www.cyfe.com/ https://razorflow.com/ http://dashing.io/ Built by Shopify, Ruby. No
longer maintained, but works great https://panic.com/statusboard/ Alternatives
Credits Willem Van Bockstal @willemvbockstal Looks + grid system Sebastian
De Deyne @sebdedeyne Scrutinising + JS wizardry
QUESTIONS?
Thank you! https://speakerdeck.com/freekmurze/creating-a-dashboard-phpworld https://joind.in/talk/19484 http://lanyrd.com/2016/phpworld/sfkfry/ https://spatie.be/opensource https://murze.be https://murze.be/newsletter
2016 2016