A playground for testing OpenAI function calling using the Spotify API to create a message-like interface for getting user stats.
Frontend: Next.js, TailwindCSS, shadcn/ui
DBs: Vercel Postgres
Libs: Next Auth, Prisma, Vercel AI
Clone the project
git clone https://github.com/mislavjc/spotichat.git
Go to the project directory
cd spotichat
Install dependencies
pnpm install
Start the dev server
npm run dev
To run this project, you will need to add the following environment variables to your .env file:
POSTGRES_PRISMA_URL
POSTGRES_URL_NON_POOLING
KV_REST_API_READ_ONLY_TOKEN
KV_REST_API_TOKEN
KV_REST_API_URL
KV_URL
DATABASE_URL
NEXTAUTH_SECRET
NEXTAUTH_URL
SPOTIFY_CLIENT_ID
SPOTIFY_CLIENT_SECRET
OPENAI_API_KEY