default: .
# first we must setup the test database
+ sudo docker stop redis || true
+ sudo docker rm redis || true
sudo docker run -d --name redis -p 6379:6379 redis:latest
python3 ./testing/dummy_testing_data.py
# now we can run the main app with the right arguments
go build .
- ./songmanager -port 8000 -binb_location="" -songs_location="" -redis_location="localhost:6379" -container_name="" || true
+ ./songmanager -port 8000 -binb_location="" -songs_location="" -redis_location="localhost:6379" -container_name=""
- docker stop redis || true
- docker rm redis || true
for i in range(0, 100):
r.hmset(f"song:{i}", {
- "artistNames": "firstartist, secondartist",
- "songNames": "firstsongname, secondsongname"
+ "artistName": "firstartist~secondartist",
+ "trackName": "hot n cold",
+ "trackViewUrl": "http:///somehwere",
+ "previewUrl": "http://somewhere",
+ "artworkUrl60": "http://somewhere",
+ "artworkUrl100": "http://somewhere",
+ "displayArtistNames": "firstartist, secondartist",
+ "displayTrackName": "Hot n cold",
})
r.zadd("hits", {i: i})
+ # 'song:' + i,
+ # 'artistName',
+ # artistValues,
+ # 'trackName',
+ # trackNames,
+ # 'trackViewUrl',
+ # viewUrl,
+ # 'previewUrl',
+ # previewName,
+ # 'artworkUrl60',
+ # "",
+ # 'artworkUrl100',
+ # '',
+ # 'displayArtistNames',
+ # displayArtist,
+ # 'displayTrackName',
+ # displayTrack,
+
if __name__ == "__main__":
main()