Skip to content

kaigenji/Platonic-Solids-Renderer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Watch Demo

Platonic Solids Parametric Rendering Engine

Run the app in a browser. You need Node.js (v18 or newer) installed.


If you zipped the full project (has package.json, src/, etc.)

Unzip the folder, open a terminal in that folder, then run:

npm install
npm run dev

Then open the URL shown (e.g. http://localhost:5173/) in your browser.

To run the built version instead:

npm install
npm run build
npm run preview

Then open http://localhost:4173/.


If you zipped only the built app (just index.html + assets/ inside the zip)

Unzip the folder, open a terminal inside that folder, then run one of these:

Option 1 — with Node.js:

npx serve .

Then open http://localhost:3000/ (or the URL shown).

Option 2 — with Python 3:

python3 -m http.server 4173

Then open http://localhost:4173/.

You cannot double-click index.html; the app uses ES modules and must be served over HTTP.


Summary

What you have Commands
Full project (no node_modules) npm installnpm run dev
Full project (no node_modules) npm installnpm run buildnpm run preview
Pre-built folder only npx serve . or python3 -m http.server 4173

When zipping the full project, exclude the node_modules folder so the zip stays small; recipients run npm install to get dependencies.

About

Polyhedral Madness

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors