This repository is a part of CSI-248 at Renton Technical College.
We will complete this assignment together in class. If you are having problems with this assignment please refer to the lecture recording.
-
Clone the repository to your local machine. (Do not use OneDrive for assignments in this course!)
-
Make note of the folder where you cloned the repository.
-
After you have cloned this repository navigate to your local repository using the cd command.
-
Open the terminal in Visual Studio Code by hitting ctrl + ` or cmd + ` on mac.
-
Take a screenshot of your Visual Studio Code and Terminal Window and save in it your Screenshots folder.
-
For Windows, type
new-item hello.txtto create a new file. For Mac, typetouch hello.txt -
You will see this file inside of Visual Studio code.
-
Inside of the file type your name and save the file.
-
Take a screenshot of the output and save the file inside of the screenshots folder.
-
Type
git add .to stage all updated files. -
Type
git statusto view all staged files. -
Type
git commit -m "Part 1 Complete". -
Type
git pushto push the changes to GitHub.
-
Install NVM for your operating system. Windows users (https://github.com/coreybutler/nvm-windows/releases/download/1.1.11/nvm-setup.exe) Mac Users: https://dev.to/ajeetraina/how-to-install-and-configure-nvm-on-mac-os-5fgi
-
Once NVM is installed type nvm at your terminal. You should see a list of commands.
-
Type
nvm install latest- This will install the latest version of NodeJS on your machine. -
Type
nvm use latest, take a screenshot of the output and add to the screenshots folder. -
With the latest version of NodeJS added you should now be able to run Nodel commands from the terminal.
-
Type
node --version, take a screenshot of the output and add to the screenshots folder.
-
With node installed, lets try it out. For Windows, type
new-item helloworld.jsto create a new file. For Mac, typetouch hellworld.jsto create a new file. -
Inside of that file in Visual Studio Code add
console.log("Hello World");to the file and save it.
-
Now from the terminal run
node helloworld.js, Take a screenshot of the output and save to the screenshots folder.
-
Type
git add .to stage all updated files. -
Type
git commit -m "Part 2 Complete". -
Type
git pushto push the changes to GitHub.
-
From the terminal type
npm init(this creates a new node project) -
Notice that a package.json file is created.
-
package.json defines the entry point of the application as well as an dependencies the project may have.
-
Notice that helloworld.js is defined as main, or the entry point.

-
Lets create an index.js file.
-
For Windows, type
new-item index.js. For Mac, typetouch index.js.
-
Open index.js in Visual Studio code and add
console.log("Node project running");and save the file.
-
Now let's tell Node to run index.js when we start the project.
-
Open package.json and replace the entry under scripts
"test": "echo \"Error: no test specified\" && exit 1"with"start" : "node index.js".
-
Save the file.
-
Now run npm start from the terminal. You should see Node Project Running printed to the console.

-
Take a screenshot of the output and add to the screenshots folder.

-
Type
git add .to stage all updated files. -
Type
git commit -m "Guided Activity 1 Complete". -
Type
git push.
If you have any questions about this assignment please reach out to myself or our TA for this course.
Feel free to message your instructor or the TA on Canvas if you have any questions.





