Download and install the following software:
- Node.js on Ubuntu/Windows
- Code editor
- Visual Studio Code (VSCode) (official Link)
- IntelliJ Ultimate Ubuntu/Windows
- Git on Ubuntu/ Windows
- Github Desktop on Ubuntu/Windows
-
If you have GitHub Desktop installed
- Clone the repository by clicking the green
Codebutton and thenOpen with GitHub Desktop. - Select the location where you want to clone the repository and click the
Clonebutton.
- Clone the repository by clicking the green
-
Open a terminal and type the command below to clone the repository.
git clone https://github.com/shoebjoarder/react-lecture
-
Open the project using a code editor.
-
In VSCode, click
Terminalmenu from the top menu and clickNew Terminal. -
Switch between branches to view the different topics. Type
git checkout <branch_name>in the terminal to switch between the branches. Remember to replace<branch_name>with the actual branch name, e.g.,git checkout 1-component-types
-
Open the terminal and type the following command to install the node packages.
npm ci
- If you get an error, try typing the
npm installornpm install --forcecommand.
- If you get an error, try typing the
-
Run the following command in the terminal to start the server.
npm run dev
-
Click this link to open the application using your default browser.