VinylVibes requires no environment files, build tools, or configuration management. The only configurable value is the backend API base URL, declared as a top-level constant in each JavaScript module. Everything else — authentication state, cart persistence, and session data — is handled throughDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/akibanks/tienda_musica_web/llms.txt
Use this file to discover all available pages before exploring further.
localStorage at runtime with no additional setup.
API Base URL
All three JavaScript modules declare an identicalAPI constant at the very top of the file. Every fetch call in the frontend is constructed relative to this constant, so changing it in all three files is sufficient to point the entire app at a different backend.
API in all three files. No other changes are required.
Running with a Local Backend
Start your local backend server
Spin up your backend on any local port. For example, if your backend listens on port 4000, it will be reachable at
http://localhost:4000.Update the API constant in all three JS files
In
script.js, login.js, and admin.js, replace the production URL with your local address:GitHub Pages Deployment
The frontend is deployed automatically on push tomain. No additional configuration is required — GitHub Pages picks up the static files and serves them directly.
The redirect logic in login.js uses window.location.pathname to construct base-relative URLs, making it compatible with both root-level and subdirectory GitHub Pages deployments:
index.html whether the site is hosted at https://user.github.io/ or https://user.github.io/vinylvibes/.