The idea or inspiration comes from the ZTM Cours on Udemy (JavaScript Web Projects: 20 Projects to Build Your Portfolio). Plus, I wanted to try module gh-pages as a deployment with vite and react. Original project is coded in vanilla js (Quote Generator).
npm installnpm run devDelete dist and node_modules folders.
Tip
Keep your things clean!
npm run cleanImportant
Setup for GitHub Pages for deployment:
Extended vite.config.js with base
Info here
export default defineConfig({
base: "/quote-generator-react-js-gh-pages",
...
})npm run deploy