BilVaD1 / Music-Room

This app uses Dockerizing a Python Django app with React, serving from the same host.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Music Room

Music Room is a web application that allows users to create a room and play music from Spotify. Other users who have access to the room can vote to skip songs, pause or start the music, and view the song queue.

Features

  • Create a room and invite other users to join
  • Play music from Spotify and view the current song queue
  • Vote to skip songs or pause/start the music

Requirements

  • Docker
  • Spotify Premium account (for host user only)

Installation

  1. Clone the repository to your local machine
  2. Create a .env file in the root directory with the following variables
CLIENT_ID='<your_spotify_client_id>'
CLIENT_SECRET='<your_spotify_client_secret>'
REDIRECT_URI='http://127.0.0.1:8000/spotify/redirect'

Replace <your_spotify_client_id> and <your_spotify_client_secret> with your Spotify API credentials. You can get these by registering your application at the Spotify Developer Dashboard.

  1. Build the Docker image: docker-compose build
  2. Start the containers: docker-compose up
  3. Access the application at http://localhost:8000

If you want to connect to your room from other devices of your network, find the local IP of the machine where the docker was launched and proceed to this IP from a different device, also add the port(8000) to your address.

About

This app uses Dockerizing a Python Django app with React, serving from the same host.


Languages

Language:Python 59.6%Language:JavaScript 37.0%Language:Dockerfile 1.3%Language:HTML 1.2%Language:CSS 0.5%Language:Shell 0.4%