to run Python server in cmd window,
python -m http.server 8000
in web browser,
http://localhost:8000/index.html
If it does not work,
(1) install Node.js
(2) in cmd window:
npm create vite@latest temp -- --template react
(3) in temp folder in cmd window:
npm install
npm run dev
(4) replace the generated src/App.jsx with your file contents and import your CSS in the component or main.jsx
(5) in cmd window, build:
npm run build
(6) copy all files in the "dist" folder, and now the Python server will work
No comments:
Post a Comment