Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

harryd18/MoodTunes

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MoodTunes 🎵

MoodTunes is a mood-based playlist generator that connects to my Spotify account and fetches real playlists depending on how the user is feeling. I created this as a personal front-end project using React and the Spotify API.

Features

  • Login with Spotify using Authorization Code Flow with PKCE
  • Choose your current mood (Happy, Sad, Chill, Angry, Energetic)
  • Fetches real public playlists from Spotify based on the selected mood
  • Smooth UI with background color transitions based on emotion
  • Fully responsive and deployed with Vercel

Tech Stack

  • React (with Vite)
  • Tailwind CSS for styling
  • Spotify Web API
  • PKCE authentication flow
  • Vercel for deployment

How it Works

When the user log in using Spotify, the app securely fetches an access token using the PKCE flow. Then, based on the mood user selects, the app makes a call to Spotify’s Search API with relevant keywords and shows the top 5 matching playlists. Each playlist links directly to Spotify.

Live Demo

You can try it out here:
👉 (https://mood-tunes-ten.vercel.app/)

Getting Started Locally

git clone https://github.com/harryd18/MoodTunes.git
cd MoodTunes
npm install
npm run dev

Author

Harshit Dhasmana

About

MoodTunes is a website built by using ReactJS, Javascript and Tailwind CSS. It will let you select the mood that you are feeling and will fetch the playlists according to that mood by using Spotify API. If you click on any of the displayed song playlist it will load you directly to the Spotify page where you can enjoy the music.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Morty Proxy This is a proxified and sanitized view of the page, visit original site.