Skip to content

Latest commit

 

History

History
48 lines (33 loc) · 939 Bytes

README.md

File metadata and controls

48 lines (33 loc) · 939 Bytes

sample-react-app

Here's a basic React App to help you build a website quickly

It includes:

Prerequisites

  • Node 18
  • A GitHub account

How to run it locally

  1. Install dependencies
npm i
  1. Run it
npm run dev
  1. View it in the browser http://localhost:5173/sample-react-app

Run unit tests

npm run test

How to deploy your website to GithubPages

  1. In vite.config.ts file add your repository name in base.
  base: '/sample-react-app/',
  1. In package.json edit homepage adding your GitHub username and repository name.
  2. Build your website by running npm run build command.
  3. Deploy to GitHub pages by running npm run deploy command.
  4. Check your website on the url you added in website. It may take a few minutes to deploy.