First, seed the 'tracks' database collection:
- Setup connection to spotify and mongodb
# ./.env
SPOTIFY_CLIENT_ID=abc
SPOTIFY_CLIENT_SECRET=123
MONGODB_URI=mongodb+srv://database:pass@user.url.mongodb.net/?retryWrites=true&w=majority
MONGODB_DB=database
- Get the top tracks from Spotify to seed
nvm use
npm install
npm run seed
Then, get the frontend up and running
cd frontend
npm install
npm run dev