Skip to content

Luca-Blight/MusicTS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MusicTS

A simple music sharing app that allows users to create a session and share music with other users in the same session.

Directory

The entrypoint file is app.ts and their simple interface that can be found under the views folder

├── README.md
├── package-lock.json
├── package.json
├── src
│ ├── app.ts
│ ├── controllers
│ │ └── websock.ts
│ ├── db
│ │ └── models
│ │ ├── session.ts
│ │ └── user.ts
│ ├── helpers
│ ├── routes
│ │ ├── index.ts
│ │ ├── session_routes.ts
│ │ └── user_routes.ts
│ └── tests
│ ├── session_tests.ts
│ └── users_tests.ts
├── tsconfig.json
└── views
├── frontend.ejs
├── script.js
└── styles.css

9 directories, 16 files

Instructions

  1. Add PORT=8000 & DB_PASSWORD=dev_server to .env file for mongo authentication
  2. npm install && npm run server
  3. make a request to http://localhost:8000/. This will render a simple frontend to work with
  4. Sign-up/Sign-in to the website, afterwards you'll be able to create or join/leave a session
  5. Sign-up so that you are able to create a new session
  6. Create a new session
  7. Create new browser session and join the session you just created
  8. An event should be emitted that a new user has joined the room
  9. Play music from host, an event should be emitted that can be seen by the new user
  10. Leave the session with new user, an event should be emitted to the session host that a user has left the room

Areas of improvemeent

fix messaging format when user joins or leave a channel

updated_at to session and user schema

host has ability to create a playlist

host can eject people from the room

host can mute people

host can skip songs

user authentication

split log-in/sign-in up

rooms list

If user join another room the user may be forced to to leave the room they are in.

If host leaves the room, someone else is randomly selected to be the new host with admin permissions.

To Do

Validate #9

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published