Musicify is a website to help you settle on a mood. We know its hard to decide what music to listen to, so simply type in a mood your feeling and have ChatGPT generate up to 6 songs recommendations based on that mood.
By typing in a prompt and passing it into the OpenAI API, we generate a recommendation object which we can then feed into Spotify API in order to generate up to six tracks that help fit whatever mood your looking for.
Musicify runs on Node.js Version 16.17.0 and higher. Please ensure you have Node.js installed via the official website.
This project is built using Next.js, a React framework. Next.js is automatically installed when you install all dependencies for this project.
The following environment variables are required and must be stored in an .env
file:
OPENAI_API_KEY=
SPOTIFY_PUBLIC_API=
SPOTIFY_SECRET_API=
# Install dependencies
npm i
# Add dependency
npm i <dependency>
# Remove dependency
npm un <dependency>
# Open a browser at localhost:3000
npm run dev
# Rewrite code recursively with proper formatting
npm run format
# Show formatting differences recursively
npm run check
npm run build