Visit the live site: https://Thepathakarpit.github.io/flacmusicstore/frontend/
- Clone the repository
- Set up the backend (see backend/README.md)
- Run the frontend locally:
cd frontend python -m http.server 8000
- Search music tracks by title
- Direct download links for FLAC files
- Google Drive integration for storage
- CSV-based track indexing
/flac
├── backend/
│ ├── app.py # Flask backend server
│ ├── config.py # Configuration settings
│ ├── requirements.txt # Python dependencies
│ └── utils/
│ ├── drive_helper.py # Google Drive API functions
│ └── csv_helper.py # CSV operations
├── frontend/
│ ├── index.html # Main page
│ ├── css/
│ │ └── style.css # Styling
│ └── js/
│ └── main.js # Frontend logic
├── data/
│ └── tracks.csv # Track metadata and Drive IDs
└── README.md # Project documentation
- Create a new Gmail account for storing FLAC files (e.g., flacmusicstorehah@gmail.com)
- Go to Google Cloud Console
- Create a new project
- Enable the Google Drive API for your project
- Configure OAuth consent screen
- Create OAuth 2.0 Client ID credentials
- Download the credentials and save as
credentials.jsonin the backend directory - Note down your Google Drive folder ID where FLAC files are stored
# Create and activate virtual environment
cd backend
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
# Install dependencies
pip install -r requirements.txt
# Update config.py
# Replace 'your_folder_id' with your actual Google Drive folder IDNo additional setup required for frontend files.
Start the backend server:
cd backend
python app.pyStart the frontend server (in a new terminal):
cd frontend
python -m http.server 8000We've created a comprehensive setup script that handles all dependencies and runs the entire application:
./run.shThis script will:
- ✅ Check for Python3 and pip
- ✅ Create/use a virtual environment (if possible)
- ✅ Install all required dependencies
- ✅ Start the Flask backend (port 5000)
- ✅ Start the frontend server (port 8000)
- ✅ Provide you with ready-to-use URLs
To stop all services:
./stop.shIf you prefer to set up manually:
- Backend Setup:
cd backend
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt
python app.py- Frontend Setup (in another terminal):
cd frontend
python3 -m http.server 8000If you get a "python3-venv not available" error:
sudo apt update
sudo apt install python3.12-venv python3-pipThen re-run ./run.sh
- 🎵 Frontend: http://localhost:8000
- 🔧 Backend API: http://localhost:5000
- 🧪 API Test: http://localhost:5000/api/test