Use these commands to run the site on your machine.
export NVM_DIR="$HOME/.nvm" && . "$NVM_DIR/nvm.sh" && nvm use v20.20.2
npm install
npm run devOpen the local URL shown in the terminal. Vite usually uses:
http://localhost:5173/python-course/
Use this when you want to test the built version before deploying.
export NVM_DIR="$HOME/.nvm" && . "$NVM_DIR/nvm.sh" && nvm use v20.20.2
npm install
npm run build
npm run previewOpen the preview URL shown in the terminal. Vite usually uses:
http://localhost:4173/python-course/
- Use
npm run devwhile editing. - Use
npm run previewafternpm run buildto check the deploy-style build locally. - Keep the
/python-course/path in the URL because the Vite base path is configured for GitHub Pages.