Dashboard (kdg)

Dashboard (kdg)

A1b4b398630bbd32b77a82cbc37fae9a?s=128

Freek Van der Herten

October 25, 2017
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. Since 2003 Websites, applications and webshops Team 4 developers, 1

    manager Specialization Laravel development
  4. THREE QUICK CAREER TIPS

  5. A FEW CAREER TIPS 1. Empathy Coding is just a

    means to an end Put yourself in the mind of some else Context is important It will make you a better human being too Empathy Gives You Superpowers by Matt Stauffer
 https://www.youtube.com/watch?v=fMFjO2szDnk Three quick career tips
  6. A FEW CAREER TIPS 2. Avoid else Three quick career

    tips if ($firstName) { if ($lastName) { if ($age) { return 'person is valid'; } else { return 'age is required'; } } else { return 'lastName is required'; } } else { return 'firstName is required'; }
  7. A FEW CAREER TIPS 2. Avoid else Three quick career

    tips if (! $firstName) { return 'firstName is required'; } if (! $lastName) { return 'lastName is required'; } if (! $age) { return 'age is required'; } return 'person is valid';
  8. A FEW CAREER TIPS 2. Avoid else Three quick career

    tips https://medium.com/web-engineering-vox/improving-code- quality-with-object-calisthenics Your code sucks, let's fit it
 https://www.youtube.com/watch?v=GtB5DAfOWMQ
 
 Seven Ineffective Coding Habits of Many Programmers
 https://www.youtube.com/watch?v=ZsHMHukIlJY
  9. A FEW CAREER TIPS 3. Embrace the community Three quick

    career tips Everybody just holds a piece of puzzle Learn from each other Twitter, Meetups, Conferences Use each others solutions Give back
  10. OPEN SOURCE SOFTWARE

  11. https://spatie.be/en/opensource

  12. Open source software ± 160 public repositories on GitHub +6

    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
  13. WE ❤ POSTCARDS

  14. Spatie
 Samberstraat 69D 2060 Antwerp
 Belgium

  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. None
  30. None
  31. None
  32. https://github.com/spatie/dashboard.spatie.be

  33. HIGH LEVEL OVERVIEW

  34. 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
  35. Technology stack Laravel Pusher Vue.js

  36. Laravel 5.5 Render the initial page Fetch data from external

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

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

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

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

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

    Listen for incoming events with Laravel Echo Update the tile Vue.js
  42. None
  43. DEMO

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

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


    an internet connection
  46. DISPLAYING ON A TV

  47. Raspberry Pi 2

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

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

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

  51. WRAPPING UP

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

    De Deyne @sebdedeyne Scrutinising + JS wizardry
  53. https://github.com/tlaverdure/laravel-echo-server https://github.com/spatie/vue-save-state https://docs.spatie.be/laravel-uptime-monitor Moarrr packages

  54. Thank you! https://speakerdeck.com/freekmurze/dashboard-kdg https://spatie.be/opensource/laravel https://murze.be https://murze.be/newsletter

  55. QUESTIONS?