This repository serves as a skeleton for creating new TypeScript React applications. It includes basic setup and configurations to help you get started quickly.
Make sure you have the following installed on your machine:
Click the "Fork" button at the top right corner of the page to create a copy of the repository under your GitHub account.
-
Clone your forked repository to your local machine:
git clone https://github.com/your-username/your-forked-repo-name.git
-
Navigate to the project directory:
cd your-forked-repo-name
Install the necessary dependencies using npm:
npm install
-
Update the
homepage
field inpackage.json
to match your GitHub Pages URL:"homepage": "https://your-username.github.io/your-forked-repo-name"
-
Install the
gh-pages
package if it's not already installed:npm install --save gh-pages
-
Add the following scripts to your
package.json
:"scripts": { "predeploy": "npm run build", "deploy": "gh-pages -d build" }
-
Deploy your app to GitHub Pages:
npm run deploy
Start the development server:
npm start
Open your browser and navigate to http://localhost:3000 to see your app in action.