Code Monkey home page Code Monkey logo

real-time-web-1920's Introduction

Real-Time Web @cmda-minor-web · 2019-2020

Repository for the Real-Time-Web course. DEMO

Table of contents

Description

This application tries to bring people together online to listen to their favorite music genre's.

Concept

The application is build with the use of sockets, this enables us to create the possibility of communication between users in real time. Sockets are used to create rooms which people can join and listen to the same music together. The rooms are created with a Spotify playlist linked to the room so the users in the same room have the same music in front of them. From this playlist the users can add songs to their playback queue and others get notified that a song is added to the queue .

Concept images Home page after logging into Spotify. Home page after loging in to spotify

Creating room page, list of playlists of the user. Creating a party room out of your playlists

Party room after creation with songs and q ue. Party room created with playlist

Prerequisites

  • Nodejs
  • NPM

Installing

Clone repository to your local directory

git clone https://github.com/damian1997/real-time-web-1920.git

Installing dependencies

npm install

Bundle core assets and watch files

npm run bundle

Run server localy

npm run dev

Data life cycle

This project does not make use of a database and all the information is stored on the server.

data-life-cycle v1 Version 1 of my data life cycle

data-life-cycle v2 Version 2 of my data life cycle

Source of truth

In this application the server is the only source of truth, everything is stored on the server and only from the server decisions are being made. Because everything resides on the server the data is persistent and every user has the correct data and is not 1 step behind the rest.

Real time events

  • Join room:

When a person enters the room others will get a updated list of users.

  • Disconnect:

When a person leaves the room others will get a updated list of users.

  • Add to queue:

When someone adds a song the the playback the queue overview will be updated.

  • Remove song from queue:

When the currently played song is the same as the first song in the queue the queue will be updated and posted to everyone.

  • New current track

When a new track is being played this event fires to update the room object so new people joining the room will listen to the same track.

Features

  • Multiple rooms support.
  • Multiple people can join 1 room
  • Playlist sync with spotify account
  • Songs play according to queue
  • Pushing songs to playback queue
  • Playing full songs
  • Disconnecting from rooms updates user list
  • Real time updates on current song and playback queue

What i still want to implement

  • Sync playing of music
  • Pausing and skipping songs
  • Adjusting volume
  • Room administration

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.