tarodo / clouder

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Clouder

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

.env

For using Spotify you need to create new App in Spotify Dashboard

You need to create .env file with:

  1. SPOTIPY_CLIENT_ID - str, use Spotify Dashboard
  2. SPOTIPY_CLIENT_SECRET - str, use Spotify Dashboard
  3. SPOTIPY_REDIRECT_URI - str, Ex.: http://localhost

You need to create .env file in ./backend directory:

  1. DB_URL - str, string for DB connection
  2. FIRST_SUPERUSER - str, admin email
  3. FIRST_SUPERUSER_PASSWORD - str, admin pass

You need to create .env file in './db' directory:

  1. POSTGRES_USER - default user
  2. POSTGRES_PASSWORD - pass of the user

You need to create .env file in './bot' directory:

  1. BOT_TOKEN - str, token from BotFather
  2. RELEASE_URL - str, github url about the last release, e.g. https://api.github.com/repos/tarodo/clouder/releases/latest

Start

Start in Docker-compose

docker-compose up --build

For Spotify token auth use:

docker-compose exec spotify python reg.py

Start test

docker-compose exec back python -m pytest --cov app

Contribute

Schemas changes

docker-compose exec back alembic revision --autogenerate -m "msg"
docker-compose exec back alembic upgrade head

Before commit

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

About


Languages

Language:Python 93.5%Language:JavaScript 4.6%Language:HTML 0.7%Language:Dockerfile 0.5%Language:CSS 0.5%Language:Mako 0.2%Language:Shell 0.1%