Here's a basic React App to help you build a website quickly
It includes:
- Node 18
- A GitHub account
- Install dependencies
npm i
- Run it
npm run dev
- View it in the browser http://localhost:5173/sample-react-app
npm run test
- In
vite.config.ts
file add your repository name inbase
.
base: '/sample-react-app/',
- In
package.json
edithomepage
adding your GitHub username and repository name. - Build your website by running
npm run build
command. - Deploy to GitHub pages by running
npm run deploy
command. - Check your website on the url you added in
website
. It may take a few minutes to deploy.