Ravot (A realtime dashboard)
Tags: pushercontest
Published: 2018-05-25 16:02:48

---
title: Ravot (A realtime dashboard)
published: true
description: An app/hack submitted to the first-ever DEV Community contest. 
tags: pushercontest
---

# What I built

A real time dashboard for a company

## Demo Link

https://realtime.bluebecks.com/
for the purpose of test I am dropping a single admin user login and password

https://realtime.bluebecks.com/login
`email: franko4don@gmail.com`
`password: tomcat`

## Link to Code

https://github.com/RealDash/realtime-dashboard

# How I built it (what's the stack? did I run into issues or discover something new along the way?)


* Project Overview

We worked on a real time dashboard to display tasks, announcements, important events in the future, which music is currently playing etc. Our dashboard was built using Laravel, Vue and Pusher.
Our intent is to display this dashboard on a TV Screen against a wall in our office.

The dashboard(live dashboard end) will have the following:

1. Upcoming events scheduled by the admin.
An announcement section to display announcement to interns/team members.
2. A Scrumy board section.
3. Github section to display statistics of our numerous public repositories on Github.
4. Bitbucket section.
5. The music that is currently playing in the office.
6. A clock with the current date and time.

After the browser displays the dashboard for the first time, we’ll never refresh the page again. WebSockets and Vue are being leveraged to update the sections. Doing it this way will avoid having to refresh the page and in turn flashing screens.

Each section is its own Vue component. Laravel’s default scheduler is used to check for scheduled events and fires an event which is broadcasted to pusher when a logic is satified. When data is received, a broadcast event is fired to Pusher.

 This powerful service (Pusher) leverages websockets to carry over server events to clients in real-time. On the client side we used Laravel’s echo. The JavaScript library that makes handling those Pusher events very easy. Still on the client side each Vue component will listen to new events to update on the displayed sections.

#Team Members

We had three persons who worked on this project. Team members collaborated on Github and project development began on Friday 18th May, 2018 that's after initial commit on 2nd of may, 2018. 

Below are the names of the team members:
1. Nwanze Franklin (franko4don): Team Lead
2. Timothy Onyiuke (timolinn): Team Member
3. Nwankwo Gabriel (gfuns): Team Member

# How it was built
We started out with the requirement analysis on the system we proposed to design which is a mini task management system with real time feed. We iterated over a few designs and technologies to use then got our specifications. 

After much deliberation we came up with the following 

* Specifications

1. Laravel, vuejs, Laravel Echo and Pusher will be used for the project, Laravel     for backend, Laravel Echo and Vuejs for front end and Pusher as websocket for realtime updates
2. Task management module for admins to create tasks while setting the description             
   and the scheduled time of start and completion.
3. Task Assignment module for users who will be able to pick tasks, work on them and deliver by clicking a button so that it goes in for review
4. Music management module which Enables the admin to create and delete music as well as set the current music to play on the live dashboard view with just a click in real time
5. Announcment management module which enables admins create company wide announce ments.
6. Gist module for users where anyone can drop the latest gist in shortest words as possible
7. Event management module enables admin create upcoming events for display on the live dashboard
8. Artist module for managing artists that have music on the platform
9. Categories management for adding the category of tasks that can be created
10. User Module for managing users on the platform by the admin, the admin can delete a user as well as view a user
11. Profile module that enables a user manage his/her profile

*Processes

1. Database analysis
2. Version control integration with github
3. Creation of migrations and seeders
4. Template integration for dashboard(Gentelella alella)
5. Simple Autodeploy setup from github to test server
6. Design of live feed dashboard with HTML and CSS
7. Creation of routes and controllers as well as adding functionalities
8. Pusher integration on the backend
9. Laravel Echo integration for frontend
10. Vuejs setup with laravel mix
11. Breaking down html and css designs of live feed dashboard into vue components
12. adding functionality to components and setting up listeners for pusher events
13. Testing of Each module with fake data
14. Fixing of discovered bugs
15. Deployment

# Additional Resources/Info 
https://blog.pusher.com/writing-realtime-apps-with-laravel-5-and-pusher/
https://vuejs.org/
https://laravel.com/docs/5.5
All this is placeholder text. Use this format or any other format of your choosing to best describe your creation.

# Conclusion

Thanks to dev.to and pusher for this opportunity to explore real time apps, This app will later be used for the new technology hub (https://binaryhills.org) we are setting up for managing tasks and daily activities.