Skip to content

Incognitol07/music-player-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Music Player API

Overview

The Music Player API is a comprehensive FastAPI application designed to manage a music library with capabilities for uploading and downloading tracks. It leverages Backblaze B2 for file storage and SQLite for metadata management.

Features

  • Upload audio files to Backblaze B2.
  • Download audio files.
  • List all uploaded files.

Technologies Used

  • FastAPI: A modern web framework for building APIs with Python.
  • Backblaze B2: Cloud storage service for storing uploaded files.
  • SQLAlchemy: ORM for managing SQLite database.

Installation

  1. Clone the repository:

    git clone https://github.com/your_username/music-player-api.git
    cd music-player-api
  2. Create a virtual environment and activate it:

python -m venv venv
source venv/bin/activate  # On Windows use: venv\Scripts\activate
  1. Install dependencies:
pip install -r requirements.txt

Rename .env.example to .env and fill in your Backblaze B2 credentials.

  1. Running the API You can run the API using Uvicorn:
uvicorn app.main:app --reload
  1. Endpoints POST /upload/: Upload a file. GET /download/{file_name}: Download a file. GET /files/: List all uploaded files. License This project is licensed under the MIT License.

Steps to Create the Repository

  1. Go to GitHub and create a new repository named music-player-api.
  2. Clone it to your local machine.
  3. Create the folder structure and files as described above.
  4. Push the changes to GitHub.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages