Skip to content

pradumangoyal/stream

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Stream

Stream is a webapp using Django, DRF, and Django Channels as backend and using React as frontend which can be use to stream live music on a PC, while you can control the song using other PC's connected by LAN, in a network.

Login Screen Login Screen

Controller Screen Controller Screen

Player Screen Player Screen

Build and Run

  1. Clone the Repository
$ git clone https://github.com/pradumangoyal/stream.git stream
$ cd stream
  1. Make virtual environment setup
$ sudo apt-get install python3-venv
$ python3 -m venv <env_name>
  1. Activate your environment
$ source <env_name>/bin/activate
  1. Install requirements
$ cd ./backend/
$ pip install -r requirement.txt
  1. Migrate Files
$ python manage.py makemigrations
$ python manage.py migrate
  1. Make a Superuser with username 'stream_mainpc'(keep this in mind)
$ python manage.py createsuperuser
  1. Make a necessary entry in Song_model
$ python manage.py shell
> from stream_sockets.models import Song_model
> Song_model.objects.create()

Press Ctrl-D

  1. Run the app(on localhost:8000)
$ docker run -p 6379:6379 -d redis:2.8
$ python manage.py runserver
  1. Run react
$ cd ../frontend
$ npm install
$ npm start
  1. Browser part
    1. Open localhost:3000/stream on a window preferably on the PC connected by speakers (Song will play on this window)
    2. Go to localhost:3000 and make a new user before using it you have to approve the user
    3. Using Drag and Drop menu at localhost:8000/ approve users.
  2. Login using the user you have created and enjoy the streaming and best use of common speakers at your workplace or home.

Acknowledgements

Design Credits: @github/gouranshi

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published