Dashboard (PHP Leuven)

A1b4b398630bbd32b77a82cbc37fae9a?s=47 Freek Van der Herten
October 04, 2018
120

Dashboard (PHP Leuven)

A1b4b398630bbd32b77a82cbc37fae9a?s=128

Freek Van der Herten

October 04, 2018
Tweet

Transcript

  1. Creating a dashboard using Laravel , Vue and Pusher

  2. About me Freek Van der Herten Partner & developer at

    SPATIE @freekmurze https://murze.be
  3. About me ohdear.app

  4. About me fullstackbelgium.be

  5. About me fullstackeurope.com

  6. Since 2003 Websites, applications and webshops Team 7 developers, 1

    manager Specialization Laravel development
  7. OPEN SOURCE SOFTWARE

  8. https://spatie.be/open-source

  9. Open source software ± 200 public repositories on GitHub ±

    18 000 000 downloads total ± 1 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 https://murze.be/the-story-behind-our-open-source-efforts
  10. WE ❤ POSTCARDS

  11. Spatie
 Samberstraat 69D 2060 Antwerp
 Belgium

  12. None
  13. None
  14. None
  15. None
  16. None
  17. None
  18. None
  19. None
  20. None
  21. None
  22. None
  23. None
  24. None
  25. None
  26. None
  27. None
  28. None
  29. https://github.com/spatie/dashboard.spatie.be

  30. HIGH LEVEL OVERVIEW

  31. 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
  32. Technology stack Laravel Pusher Vue.js

  33. Laravel 5.6 Render the initial page Fetch data from external

    API’s (scheduled) Broadcast events when new data has arrived Laravel
  34. spatie/laravel-twitter-streaming-api spatie/laravel-google-calendar spatie/last-fm-now-playing spatie/packagist-api knplabs/github-api Laravel

  35. Provides full-duplex communication channels over a single TCP connection Transporting

    events from server to the browser In realtime Secure Paid service Pusher
  36. WebSockets Transporting events from server to the browser In realtime

    Secure Paid service Pusher
  37. Transporting events from server to the browser In realtime Secure

    Paid service Pusher Magic
  38. Easy to learn JS Framework Each tile is a component

    Listen for incoming events with Laravel Echo Update the tile Vue.js
  39. None
  40. DEMO

  41. Grid system The clock tile The Packagist tile The Twitter

    tile Topics
  42. There will be 
 some live coding We’ll use 


    an internet connection
  43. DISPLAYING ON A TV

  44. Raspberry Pi 2

  45. Raspberry Pi 2 Powered by the USB port from the

    TV Uses Raspbian Jessie Boots into Chromium 56 in fullscreen mode Setup
  46. TRY IT OUT YOURSELF

  47. 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

  48. WRAPPING UP

  49. Credits Willem Van Bockstal @willemvbockstal Looks + grid system Sebastian

    De Deyne @sebdedeyne Scrutinising + JS wizardry
  50. Thank you! https://speakerdeck.com/freekmurze/dashboard-php-leuven https://spatie.be/open-source https://murze.be https://ohdear.app https://fullstackeurope.com

  51. QUESTIONS?