Thanks for attending! There's a few things you'll have to do to get this repo up and running on your computer.
If you're using GitHub Desktop, click on the green "Code" button and then click "Open with GitHub Desktop". GitHub Desktop will take care of the rest!
If you're using the command line, navigate to the folder you want the repo to be stored in, and type in git clone https://github.com/ryanmohta/react-workshop.git
.
This website is built using React, which is built on the Node.js runtime. You'll need to install Node.js and its package manager, npm, to run the website locally.
Check if you already have Node.js and npm installed by typing node -v
and npm -v
into the command line — if version numbers show up for both, you're all set! If not, head over to the Node.js website to download it (the LTS version is fine).
Navigate to the root folder of the repository using the command line, and once there type in npm install
. This will install React and all of the dependencies React depends on (this may take a minute). Once that's done, ensure a folder called node_modules
got created and it contains a lot of subfolders (each subfolder is a module that is used by React!).
Type in npm start
into the command line. After a few seconds, the website should open in a browser tab! Keep the process running — now, whenever you make a change to the code and save it, the website should automatically update!