https://github.com/c-ehrlich/music-room
listen to spotify together
https://github.com/c-ehrlich/music-room
Last synced: about 1 year ago
JSON representation
listen to spotify together
- Host: GitHub
- URL: https://github.com/c-ehrlich/music-room
- Owner: c-ehrlich
- Created: 2021-08-22T08:34:08.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2021-08-25T10:46:19.000Z (almost 5 years ago)
- Last Synced: 2024-10-05T14:42:29.458Z (over 1 year ago)
- Language: Python
- Size: 299 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# Music-Room

## About
Music-Room is a shared Spotify instance that allows one user to host a room in which music is playing, and other users to vote to skip songs, and optionally pause the currently playing song.
## How to run (in dev/debug mode)
* Register a Spotify Developer account and get Client ID and Client Secret
* Create a new Application in the Spotify Developer Dashboard
* Add `/spotify/redirect` to Redirect URIs of the Application in the Spotify Developer Dashboard
* for development, `` is `http://127.0.0.1:8000`
* create spotify/credentials.py (TODO: move this process to environment variables)
```python
CLIENT_ID = ""
CLIENT_SECRET = ""
REDIRECT_URI = "http://127.0.0.1:8000/spotify/redirect" # for testing - replace with real URL in prod
```
* in project root (same folder as manage.py):
* add `spotify/credentials.py` to .gitignore
* (recommended: set up a venv)
* `pip install -r requirements.txt`
* `python manage.py runserver`
* in /frontend:
* `npm i` to install all dependencies
* `npm run dev`
* access the app (in debug mode) at 127.0.0.1:8000
## Additional Screenshots



## Notes
A significant percentage of the code was not created by me - this project is based on the following course: https://www.youtube.com/playlist?list=PLzMcBGfZo4-kCLWnGmK0jUBmGLaJxvi4j