potify Tailwind Templates

Potify

A modern web application built with Next.js 15, React 19, and Tailwind CSS 4, powered by the Spotify Web API, allowing users to authenticate via Spotify, browse music content, and interact with their playlists

๐ŸŽต Potify

Potify is a modern web application built with Next.js, React 19, and Tailwind CSS, powered by the Spotify Web API. It allows users to authenticate via Spotify, browse music content, and interact with their playlists.


๐Ÿš€ Tech Stack

  • Framework: Next.js 15
  • Language: TypeScript
  • UI Library: React 19, Tailwind CSS 4
  • Authentication: NextAuth.js
  • Spotify API SDK: @spotify/web-api-ts-sdk
  • HTTP Client: axios
  • Utility Libraries: clsx for classnames

๐Ÿ“ฆ Installation

Prerequisites

Setup

  1. Clone the repository:
git clone https://github.com/Shiro-cha/potify.git
cd potify
  1. Install dependencies:
npm install
  1. Create a .env.local file in the root directory and add your credentials:
SPOTIFY_CLIENT_ID=your_spotify_client_id
SPOTIFY_CLIENT_SECRET=your_spotify_client_secret
NEXTAUTH_URL=http://localhost:3000
NEXTAUTH_SECRET=your_random_secret

Generate a NEXTAUTH_SECRET with:

openssl rand -base64 32

๐Ÿงช Development

Start the development server:

npm run dev

Uses next dev --turbopack for faster development.

Run with HTTPS (if needed):

npm run dev:https

Make sure https-server.js is configured properly for your local certificates.


๐Ÿ—๏ธ Build and Production

Build for production:

npm run build

Start the production server:

npm start

โœ… Linting

Run ESLint to check for issues:

npm run lint

๐Ÿ“ Project Structure

potify/
โ”œโ”€โ”€ components/          # Reusable UI components
โ”œโ”€โ”€ lib/                 # Helpers and API wrappers
โ”œโ”€โ”€ pages/               # Next.js pages
โ”œโ”€โ”€ public/              # Static files
โ”œโ”€โ”€ styles/              # Tailwind global styles
โ”œโ”€โ”€ https-server.js      # Optional HTTPS dev server
โ”œโ”€โ”€ .env.local           # Environment variables
โ”œโ”€โ”€ package.json
โ””โ”€โ”€ README.md

๐Ÿงฐ Features (WIP)

  • Spotify OAuth login via NextAuth.js
  • Display user profile and playlists
  • Music search by artist, album, or track
  • Audio previews
  • Playlist creation and management
  • Dark/light mode toggle

๐Ÿง  Best Practices

This project follows:

  • SOLID principles
  • Clean, typed code with TypeScript
  • Modern ESLint setup via eslint-config-next
  • Component-based architecture with reusable logic

๐Ÿงพ License

MIT ยฉ Shiro Yukami

Top categories

Loading Svelte Themes