Skip to content

ude-soco/nodejs-hands-on

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

Node.js Hands-on

🚀 Get Started

Step 1: Pre-requisites

Download and install the following software:

  • Node.js on Ubuntu/Windows
    • Preferred to install Node Version Manager (NVM) for Ubuntu/Windows.
    • Open a terminal and then type nvm install 20.17.0 to install Node.js v20.17.0
    • Then type nvm use 20.17.0 to use the Node.js v20.17.0 to install node packages
  • Code editor
  • Git on Ubuntu/ Windows
  • Github Desktop on Ubuntu/Windows

Step 2: Clone the repository

  • If you have GitHub Desktop installed
    • Clone the repository by clicking the green Code button and then Open with GitHub Desktop.
    • Select the location where you want to clone the repository and click the Clone button.
  • Open a terminal and type the command below to clone the repository.
    git clone https://github.com/shoebjoarder/nodejs-hands-on

Step 3: Switch branch

  • Open the project using a code editor.

  • In VSCode, click Terminal menu from the top menu and click New 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

Step 4: Run the JS files

  • 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

re-frame logo

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published