VinylVibes is a static site. There is no build step, noDocumentation 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.
npm install, and no environment file to configure. The entire frontend is plain HTML, CSS, and JavaScript — clone the repository, start any static file server, and the store is running. The only external dependency is the REST API at https://api-tienda-vinilos.onrender.com, which is already configured in all three JavaScript files and is publicly reachable.
Running Locally
Start a local file server
Serve the project with any static file server. The two most common options require nothing beyond Node.js or Python, both of which are typically already installed.
Open the app in your browser
Navigate to the address printed by your chosen server.
- npx serve → http://localhost:3000
- Python HTTP server → http://localhost:8080
Log in with the demo account
To explore the admin panel and protected features, sign in with the built-in demo account.
This account has the
| Field | Value |
|---|---|
| Username | admin_chocolate |
| Password | chocolate |
demo role, which grants read-only access to the admin panel. All write controls (role changes, user deletion, sale status updates) are visible but disabled, and a read-only banner is displayed at the top of the admin layout.Connecting to Your Own Backend
TheAPI constant at the top of script.js, login.js, and admin.js controls which backend the frontend talks to. By default, all three files point to the hosted instance:
script.js
API in all three files. For example, if you are running the backend locally on port 4000:
You must update the constant in all three files —
script.js, login.js, and admin.js — for the frontend to route every request correctly. Each file declares its own API constant independently at the top of the file.Token Storage and Protected Requests
After a successful login,login.js stores the JWT returned by POST /login in localStorage under the key vv_token. Every subsequent request to a protected endpoint reads that token and attaches it as a Bearer header:
script.js (for checkout, recommendations, and purchase history) and by admin.js (for all admin endpoints). You do not need to manage the token manually — it is set after login and cleared on logout.
Deploying to GitHub Pages
VinylVibes requires no build or deployment configuration for GitHub Pages. Push your changes to themain branch and GitHub Pages serves the static files automatically.
index.html as the site root within minutes of the push. No gh-pages branch, no Actions workflow, and no configuration file is needed.