Prerequisite: you have node installed on the command line and can run node --version
- Open a terminal and navigate to the root of this repository
- Run:
npm install - Install VSCode
- Open VSCode. Install the recommended extensions that pop up in the bottom right. If you don't see this, then you can manually install the following two extensions: BiomeJS and TailwindCSS.
- You might need to restart VSCode in order for extensions to take in effect. Restart by running
CMD+Shift+Pand search for "Reload Window", hitEnter. - Verify that BiomeJS is working by adding some extra indents/spaces in
src/main.tsx. It should format the file on save. - Start the dev server with
npm run devand navigate to http://localhost:5173/
It is important that you follow these steps in the correct order:
- Open
package.jsonand update the"homepage"key with your repo information. It should change from:
"homepage": "https://hes-e39.github.io/react-ts-template/"
to
"homepage": "https://hes-e39.github.io/<your repo>/"
If you created this repo in github classrooms, the repo name should have your username at the end of it. Make sure to copy the whole thing. Also make sure the trailing / follows after your repo name.
- Push changes to GH
- Wait until actions finish, this will create a new branch
gh-pagesand run the deployment - In your GH repo: Settings -> Pages -> Build and deployment -> Branch -> gh-pages
You might have to hard refresh the browser page when pushing multiple updates to GH in order to reflect the most recent changes.