A service to help me collect new music from beatport and create playlists on music platforms.
Service can read html file of your playlist from Beatport and create new playlist in Spotify
For using Spotify you need to create new App in Spotify Dashboard
You need to create .env
file with:
- SPOTIPY_CLIENT_ID - str, use Spotify Dashboard
- SPOTIPY_CLIENT_SECRET - str, use Spotify Dashboard
- SPOTIPY_REDIRECT_URI - str, Ex.:
http://localhost
You need to create .env
file in ./backend
directory:
- DB_URL - str, string for DB connection
- FIRST_SUPERUSER - str, admin email
- FIRST_SUPERUSER_PASSWORD - str, admin pass
You need to create .env
file in './db' directory:
- POSTGRES_USER - default user
- POSTGRES_PASSWORD - pass of the user
You need to create .env
file in './bot' directory:
- BOT_TOKEN - str, token from BotFather
- RELEASE_URL - str, github url about the last release, e.g.
https://api.github.com/repos/tarodo/clouder/releases/latest
docker-compose up --build
For Spotify token auth use:
docker-compose exec spotify python reg.py
docker-compose exec back python -m pytest --cov app
docker-compose exec back alembic revision --autogenerate -m "msg"
docker-compose exec back alembic upgrade head
black .\beatport.py .\models.py .\spotify.py .\backend\app\api\ .\backend\app\core\ .\backend\app\crud\ .\backend\app\models\ .\backend\tests\ .\bot
isort .\beatport.py .\models.py .\spotify.py .\backend\app\api\ .\backend\app\core\ .\backend\app\crud\ .\backend\app\models\ .\backend\tests\ .\bot