Skip to content

This is a Spotify clone built with NextJS using Tailwind CSS for styling, NextJS Middleware for server-side authentication, NextAuth for client-side authentication, and the Spotify API for data retrieval.

Notifications You must be signed in to change notification settings

Codekaito/NextJS-Spotify

Repository files navigation

Spotify Clone with NextJS using Tailwind CSS, NextJS Middleware, NextAuth and Spotify API

This is a Spotify clone built with NextJS using Tailwind CSS for styling, NextJS Middleware for server-side authentication, NextAuth for client-side authentication, and the Spotify API for data retrieval.

image

Live Demo

Getting Started

Follow the below instructions to get the project up and running on your local machine for development and testing purposes..

Prerequisites

  • Node.js (version 10 or higher)
  • Spotify Developer Account (to obtain CLIENT_ID and CLIENT_SECRET)

Installing

  1. Clone the repository:
git clone https://github.com/<your-github-username>/spotify-clone-nextjs.git
  1. Change to the project directory:
cd spotify-clone-nextjs
  1. Install dependencies:
npm install
  1. Create an .env.local file in the root of the project with the following contents:
CLIENT_ID=<your-client-id>
CLIENT_SECRET=<your-client-secret>
  1. Launch the development build
npm run dev

Features

This Spotify clone includes the following features:

  • Server-side authentication using NextJS Middleware and OAuth2
  • Client-side authentication using NextAuth to manage tokens and user information
  • Search for songs, albums, and artists
  • Display album and artist details, including track listings and related artists
  • Play preview audio of tracks
  • Responsive design using Tailwind CSS

Built With

  • NextJS - React framework for server-side rendering and static websites
  • Tailwind CSS - CSS utility framework for styling
  • NextJS Middleware - Middleware for NextJS serverless functions
  • NextAuth - Authentication library for NextJS
  • Spotify API - API for retrieving Spotify data

Acknowledgments

License

This project is licensed under the MIT License - see the LICENSE.md file for details.

About

This is a Spotify clone built with NextJS using Tailwind CSS for styling, NextJS Middleware for server-side authentication, NextAuth for client-side authentication, and the Spotify API for data retrieval.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published