Course Setup
Computer Setup
Setup your laptop or desktop!
An important part of the training is dedicated to building apps together and testing things in real time (bootcamp style). You can use Windows, Mac, or Linux as operating systems for the workshop.
Please ensure you have the below configured prior to the workshop:
- Permission to modify your laptop's wifi settings.
- Have local Admin rights on your laptop. (This is to install and update programming tools and configure the firewall for React Native).
- Have one or multiple browsers installed for testing (Chrome, Firefox, Safari, Edge, Opera, etc.)
- Have a code editor installed. The trainer will be using Visual Studio Code (which is free) but feel free to use any of the following if you're more comfortable in those:
- Visual Studio Code
- Atom
- WebStorm
- Sublime
- PHPStorm
- Brackets
Install Git
Git is a popular source code tool.
You will need to type the following commands from the system command line tool (bash, powershell, cmd, command prompt etc.)
- Have git version 2.39 or greater installed. Verify the version number with:
> git --version
- Install a recent version from the web site if needed. https://git-scm.com/downloads
Install nvm
To manage the installation of Node.js, we use a special installer called nvm (node version manager). This allows to load and switch the node version being used, without having to "uninstall" and "install" each time.
-
Check if a recent version of nvm is installed
- Use the command line
> nvm -v
- Should be v0.40.1 or greater on MacOS
- Should be 1.1.12 or greater on Windows PCs
- Use the command line
-
If you need to update or install nvm on your machine
- First, uninstall nvm and Node.js
- On Windows PCs, go to Settings, Apps, Apps & features.
- Uninstall both Node.js and NVM for Windows
- On MacOS, type the following in Terminal:
rm -rf $NVM_DIR ~/.npm ~/.bower
- On Windows PCs, go to Settings, Apps, Apps & features.
- First, uninstall nvm and Node.js
-
Install nvm on Windows PC
- Goto https://github.com/coreybutler/nvm-windows/releases/latest
- At the bottom of the page, download nvm-setup.exe
- Install nvm by running the installer
-
Install nvm on MacOS
- Run the following on Terminal:
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.1/install.sh | bash
-
Freshly installed nvm may not be immediately detected on the command line.
- In that case, just close the console and restart a new command line.
Install Node.js
On Windows, run the following on a Command Prompt that runs as administrator:
nvm install lts
nvm use lts
On MacOS Terminal:
nvm install --lts
nvm use --lts
Create a React App
- On the Command Prompt, move to a folder that will store your web projects for the workshop (in the sample below we call the directory
Projects
, but you can name it as you wish) - Navigate to the folder:
> cd Projects
- Create a demo1 app:
> npm create vite@latest demo1 -- --template react-swc
- This creates a vite project named demo1, using the React template
- Note there's an empty double dash (--) on the line
- You will get a prompt Need to install the following packages. Ok to proceed? Press Y and enter to confirm.
- Move to the new folder:
> cd demo1
- Install tooling and dependencies:
> npm install
- Tooling and dependencies are installed in a folder called
node_modules
- Tooling and dependencies are installed in a folder called
- Start the dev web service:
> npm run dev
- Press letter o and enter.
- This opens your browser and navigates to
http://localhost:5173/
. - Once you see the webpage, you've completed the setup!
- This opens your browser and navigates to
- To stop the web server, type q and enter
Virtual Training Setup (only for remote training)
1. Zoom software
Zoom is going to be used for the screencast. Zoom is a free software, available on tablets, phones and PCs. You’ll need to install Zoom on your computer or tablet: https://www.zoom.us/test
2. Two screens
Your computer will need to have two screens. One screen will be used to work on your own React projects. The other screen will be used to look and interact with the trainer’s screencast. You’ll need both side by side.
If you don’t have a second screen, you can use a second laptop, or separate tablet with a stand.
3. Private environment and headset
To have the best experience possible, you’ll need to be in a distraction-free area. You will need to freely talk and interact with the trainer using your headset. You’ll need to avoid answering your phone and checking your email. We will have 15 minute breaks during the course, so you can check up on emergencies.
Material needed for printing
To print the documentation:
Goto https://www.reactAcademy.live/registered. This will redirect you the handout page with automatic registration. You can now proceed to download various documents in PDF format that you can print. (Or simply use the online version, if you don’t have a printer.)