A modern web application built with Next.js that integrates with the Spotify API to provide a dashboard interface for managing and viewing Spotify data.
- Spotify OAuth2 Authentication
- Modern and responsive dashboard interface
- Built with Next.js 15 and TypeScript
- Docker support for easy deployment
- Tailwind CSS for styling
- Node.js (Latest LTS version recommended)
- npm or yarn
- Docker and Docker Compose (optional, for containerized deployment)
- Spotify Developer Account and API credentials
Create a .env file in the root directory with the following variables:
SPOTIFY_CLIENT_ID=your_spotify_client_id
SPOTIFY_CLIENT_SECRET=your_spotify_client_secret
SPOTIFY_REDIRECT_URI=your_redirect_uriYou can obtain these credentials by creating an application in the Spotify Developer Dashboard.
- Clone the repository:
git clone https://github.com/yourusername/spotify-api.git
cd spotify-api- Install dependencies:
npm install
# or
yarn install- Start the development server:
npm run dev
# or
yarn devThe application will be available at http://localhost:3000.
To run the application using Docker:
- Build and start the containers:
docker-compose up -d- The application will be available at
http://localhost:3000.
spotify-api/
├── src/
│ ├── app/ # Next.js app directory
│ ├── types/ # TypeScript type definitions
│ └── utils/ # Utility functions
├── public/ # Static assets
├── Dockerfile # Docker configuration
├── docker-compose.yml # Docker Compose configuration
└── ...
- Next.js - React framework for production
- TypeScript - Static typing for JavaScript
- Tailwind CSS - Utility-first CSS framework
- Docker - Containerization platform
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add some amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request