Skip to content

Conversation

@GauravSingh0248
Copy link

Summary

This pull request introduces several major enhancements to the MusicTrackerAPI, including user authentication via Spotify, user-specific data management, advanced song search, favorites functionality, and mood-based playlist generation.

Key Updates

  • User Authentication & Management

    • Integrated Passport.js with Spotify OAuth for secure user login.
    • Added a users table to the database.
    • User sessions and Spotify access tokens are securely managed.
  • Spotify Data Integration

    • Added endpoints to fetch the authenticated user's currently playing track, playlists, and liked songs using the Spotify Web API.
  • Database Schema Enhancements

    • Extended the songs table with album, year, and mood fields.
    • Updated the playlists table to associate playlists with users.
    • Added a favorites table for user-song relationships.
  • Song Management & Search

    • Enhanced song creation and retrieval to support new fields.
    • Implemented flexible search/filtering by title, artist, genre, album, year, and mood.
  • Favorites Playlist Feature

    • Users can add, remove, and list their favorite songs via new protected endpoints.
  • Mood-Based Playlist Generation

    • Added an endpoint to generate playlists based on song mood.

Notes

  • All sensitive endpoints are protected and require authentication.
  • The codebase is now ready for further enhancements, such as frontend updates or deeper third-party integrations.

Please review and test the new authentication flow and endpoints. Feedback and suggestions are welcome!

@keploy
Copy link

keploy bot commented Jul 27, 2025

No significant changes currently retry

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant