Skip to content

khandrew1/musicify

 
 

Repository files navigation

Musicify

Next.js JavaScript TailwindCSS Prettier chatGPT

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.

How it works

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. Demo

Node.js

Musicify runs on Node.js Version 16.17.0 and higher. Please ensure you have Node.js installed via the official website.

Next.js

This project is built using Next.js, a React framework. Next.js is automatically installed when you install all dependencies for this project.

Environment Variables

The following environment variables are required and must be stored in an .env file:

OPENAI_API_KEY=
SPOTIFY_PUBLIC_API=
SPOTIFY_SECRET_API=

Dependencies

# Install dependencies
npm i

# Add dependency
npm i <dependency>

# Remove dependency
npm un <dependency>

Running the Website Locally

# Open a browser at localhost:3000
npm run dev

Formatting Code via Prettier

# Rewrite code recursively with proper formatting
npm run format

# Show formatting differences recursively
npm run check

Build the Website

npm run build

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 93.3%
  • CSS 6.7%