Download and install node.js from here.
Install Vite using npm install -D vite
npm run dev
In browser go to http://localhost:5173/
to see website
Used Mapbox React tutuorial to start.
npm create vite@latest
npm install
npm run dev
This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.
Currently, two official plugins are available:
- @vitejs/plugin-react uses Babel for Fast Refresh
- @vitejs/plugin-react-swc uses SWC for Fast Refresh
Followed this to deploy to github pages.
You need to be signed into github in the terminal before deployment. Install GH CLI and run gh auth login
to sign in.
Once everything is setup:
To create a new deployment, run npm run deploy