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
Dashboard (domcode)
Search
Sponsored
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
Freek Van der Herten
November 28, 2017
Technology
140
0
Share
Dashboard (domcode)
Freek Van der Herten
November 28, 2017
More Decks by Freek Van der Herten
See All by Freek Van der Herten
Uncharted packages (ode aan de code)
freekmurze
0
62
Uncharted packages (Laravel Live Denmark)
freekmurze
0
250
I shall define this only once
freekmurze
0
480
An Introduction to Snapshot testing
freekmurze
0
560
Event Sourcing In Laravel
freekmurze
0
280
Building a realtime dashboard with Laravel Livewire (PHPKonf)
freekmurze
0
860
A tour behind the scenes of Oh Dear (PHP Benelux)
freekmurze
2
910
A practical look at multitenancy in Laravel
freekmurze
1
400
A practical look at multitenancy in Laravel (Laracon US)
freekmurze
0
780
Other Decks in Technology
See All in Technology
The 7 pitfalls of AI
ufried
0
160
アクセシビリティはすべての人のもの
tomokusaba
0
200
M5Stack CoreS3とZephyr(RTOS)で Edge AIっぽいことしてみた
iotengineer22
0
400
Digital Independence: Why, When and How
wannesrams
0
220
『生成AI時代のクレデンシャルとパーミッション設計 — Claude Code を起点に』の執筆企画
takuros
2
1.8k
Choose your own adventure in agentic design patterns
glaforge
0
160
20260423_執筆の工夫と裏側 技術書の企画から刊行まで / From the planning to the publication of technical book
nash_efp
3
690
AIと乗り切った1,500ページ超のヘルプサイト基盤刷新とさらにその先の話
mugi_uno
1
210
Building a Study Buddy AI Agent from Scratch: From Passive Chatbots to Autonomous Systems
itchimonji
0
110
AWS Agent Registry の基礎・概要を理解する/aws-agent-registry-intro
ren8k
3
430
AI時代に越境し、 組織を変えるQAスキルの正体 / QA Skills for Transforming an Organization
mii3king
0
430
需要創出(Chatwork)×供給(BPaaS) フライホイールとMoat 実行能力の最適配置とAI戦略
kubell_hr
0
1.6k
Featured
See All Featured
Unlocking the hidden potential of vector embeddings in international SEO
frankvandijk
0
780
Large-scale JavaScript Application Architecture
addyosmani
515
110k
Avoiding the “Bad Training, Faster” Trap in the Age of AI
tmiket
0
140
Agile Actions for Facilitating Distributed Teams - ADO2019
mkilby
0
180
The Limits of Empathy - UXLibs8
cassininazir
1
320
What’s in a name? Adding method to the madness
productmarketing
PRO
24
4k
Speed Design
sergeychernyshev
33
1.6k
Color Theory Basics | Prateek | Gurzu
gurzu
0
300
How to Build an AI Search Optimization Roadmap - Criteria and Steps to Take #SEOIRL
aleyda
1
2k
Utilizing Notion as your number one productivity tool
mfonobong
4
300
Ruling the World: When Life Gets Gamed
codingconduct
0
220
Bash Introduction
62gerente
615
210k
Transcript
Creating a dashboard using 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 6 developers, 1
manager Specialization Laravel development
OPEN SOURCE SOFTWARE
Open source software ± 170 public repositories on GitHub +7
000 000 downloads + 700 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://spatie.be/en/opensource
http://github-awards.com/users?type=world&language=php Open source software
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.5 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://speakerdeck.com/freekmurze/dashboard-domcode https://spatie.be/opensource/laravel https://murze.be
QUESTIONS?