Spring web application, which consumes audio tags via kafka, and persist them in a database. The database is accessible thought REST endpoints. The tags could be paired with tracks on spotify, which is done by another consumer.
- Run
docker-compose up
for database
Name | Format | Default value | Comment |
---|---|---|---|
KAFKA_AUDIO_TAG_CREATED_TOPIC |
string | audio-tag-created | |
KAFKA_SERVER |
string | localhost:9093 | |
KAFKA_SPOTIFY_TRACK_TOPIC |
string | spotify-track-created | |
KAFKA_TRACK_LIKED_TOPIC |
string | track-liked | |
KAFKA_PLAYLIST_CREATED_TOPIC |
string | playlist-created | |
KAFKA_PLAYLIST_DELETED_TOPIC |
string | playlist-deleted | |
KAFKA_PLAYLIST_ITEM_ADDED_TOPIC |
string | playlist-item-added | |
KAFKA_AUDIO_TAG_PROCESSED_TOPIC |
string | audio-tag-processed | |
KAFKA_AUDIO_TAG_ADDED_TOPIC |
string | audio-tag-added | |
DATASOURCE_USERNAME |
string | mozeshajdu | |
DATASOURCE_PASSWORD |
string | mozeshajdu | |
DATASOURCE_URL |
string | jdbc:postgresql://localhost:5432/audiotag | |
HIBERNATE_DDL_AUTO |
string | update | Options: validate, update, create, create-drop, none |
SHOW_SQL |
string | false | Show sql queries on console. Only use it for development |