A challenge task from Entri.me
- Python 3.6.*
- pipenv python package (
pip install pipenv
) - Node 8.* (with npm)
- Create a slack workspace.
- Create a channel if none available.
- Create an app, add it to channel and obtain API token.
- Now get the channel ID from slack URL.
- Open the slack workspace in a web browser.
- Click on the preferred channel.
- Get the channel ID from the URL.
https://example-workspace.slack.com/messages/CC90T1PTP/ CC90T1PTP in the url is the channel ID
- Add some youtube videos to the slack channel.
- Open terminal.
- Clone the repository.
- Change directory to server.
- Run
pipenv install
followed bypipenv shell
. - Run
python manage.py migrate
followed by python manage.py runserver. - The server will be running at
localhost port 8000
successfully.
- Run
- Change directory to client.
- Run
npm install
followed bynpm start
. - The client will be running at
localhost port 3000
.
- Run
- Go to localhost:3000 in the browser.
- Type in the token and channel ID.
- Wait for it to fetch the videos.
- Vote on video using vote button of the corresponding video.
- Refresh the page to restart player with newly updated queue.