A modern, interactive 3D educational platform built with Vanilla JS, Tailwind CSS, and Google Model Viewer.
This project is optimized for Vercel deployment as a static site.
- Push this folder to a GitHub repository.
- Import the repository in Vercel.
- Vercel will detect it as a static site (HTML/JS).
- Click Deploy.
index.html: Landing page.viewer.html: Main 3D application.about.html: Information page.js/main.js: Core logic.vercel.json: Routing configuration.
- Zero Build Step: No
npm installornpm buildrequired. Runs natively. - Fast Loading: Uses CDN for Tailwind and Model Viewer.
- Responsive: Full mobile support.
The chatbot uses a backend proxy to call Google Gemini securely.
- Deploy on Vercel (recommended). The project includes
api/chat.js. - Set the environment variable
GOOGLE_API_KEYto your Gemini API key. - No client-side keys are used, and there is no fallback in code—
GOOGLE_API_KEYmust be configured on the server.
npm i -g vercel
vercel devOpen http://localhost:3000 and use the chatbot in the bottom-right.
On Windows PowerShell, you can run with a temporary env var:
$env:GOOGLE_API_KEY="YOUR_KEY_HERE"; vercel dev- Frontend sends messages to
/api/chatwith context; responses return as JSON. - For production, store keys only in environment variables, not client code.