i tried using npm install; npm run dev
, it throwed me a 200MB+ folder named node_modules
, and DOESN’T WORK.
after downloading the official css(https://pyscript.net/alpha/pyscript.css) and js(https://pyscript.net/alpha/pyscript.js), and put them to path /pyscriptjs/examples/build
, everything is fine. all i need to do is to type python -m http.server
in the example folder.
then you can go to http://localhost:8000/
to see the examples.