Compare your music preferences to your friends starting with the ability to create playlists that with just your music, just your friend's music, or music you've both loved.
npm install
Create a .env
file in the root directory.
cp .env.example .env
Update...
- Spotify Client Id
- Spotify Client Password
- Last.fm API Key
- Last.fm Shared Secret
Update the DATABASE_URL
if you want to connect to a remote database.
npm run dev
Start the cron jobs that track listening history and research additional information about tracks.
npx ts-node src/music/cron/scheduleJobs.cron.ts \
updateListeningHistory \
createListens \
addTrackFeatures
Consider running these in separate screen
instances.
- Create a
.env.test.local
file
cp .env.example .env.test.local
- Configure the
DATABASE_URL
to connect to the test database hosted by Docker
# Filename: .env.test.local
...
DATABASE_URL='mysql://root:test@localhost:3306/test'
...
npm run test
The Dockerized database for tests will start running and tests will be executed.