Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🎵 Spotify Clone Backend

A scalable and secure backend API for a Spotify Clone application built with Node.js, Express.js, and MongoDB. This project provides user authentication, music and album management, file uploads, and protected API endpoints for a complete music streaming application.


🚀 Features

  • 🔐 JWT Authentication
  • 👤 User Registration & Login
  • 🎵 Music CRUD Operations
  • 💿 Album Management
  • ☁️ Audio & Image Uploads
  • 🔒 Protected Routes
  • ✅ Request Validation
  • ⚡ Centralized Error Handling
  • 📁 Modular MVC Architecture

🛠 Tech Stack

  • Node.js
  • Express.js
  • MongoDB
  • Mongoose
  • JWT (JSON Web Token)
  • Multer
  • dotenv
  • bcrypt

📂 Project Structure

src/
│
├── controllers/
├── database/
├── middlewares/
├── models/
├── routes/
├── services/
└── app.js

server.js
package.json
.env

⚙️ Installation

Clone Repository

git clone https://github.com/jatinbansal2705/spotify-clone-backend.git

Create Environment Variables

Create a .env file in the project root.

🔑 API Modules

Authentication

  • Register User
  • Login User

Music

  • Upload Music
  • Get All Songs
  • Get Song by ID
  • Update Song
  • Delete Song

Albums

  • Create Album
  • Get Albums
  • Update Album
  • Delete Album

🔒 Authentication

Protected endpoints require a JWT token.


📦 Dependencies

  • Express
  • Mongoose
  • JWT
  • bcrypt
  • Multer
  • dotenv
  • Nodemon

📌 Future Improvements

  • Playlist Management
  • Like/Favorite Songs
  • Recently Played
  • Search API
  • Artist Profiles
  • Admin Dashboard
  • Role-Based Access Control
  • Pagination & Filtering
  • API Documentation (Swagger)
  • Unit & Integration Tests

🤝 Contributing

Contributions are welcome.

  1. Fork the repository
  2. Create a feature branch
  3. Commit your changes
  4. Open a Pull Request

About

Backend for a Spotify Clone built with Node.js, Express.js, MongoDB, JWT Authentication, for music and image management.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages