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
Code
button and thenOpen with GitHub Desktop
. - Select the location where you want to clone the repository and click the
Clone
button.
- 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/nodejs-hands-on
-
Open the project using a code editor.
-
In VSCode, click
Terminal
menu 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-nodejs-hands-on-template
- In the terminal, Type the following command
node <directory-name>
to move to a directory. Replace<directory-name>
with an actual name of the directory, e.g.,cd event-loop-tasks
- Type the following command
node <file-name>
to run a JS file. Replace<file-name>
with an actual name of the file, e.g.,node 0-1-sample.js