filmov
tv
How To Run JavaScript In VSCode On Mac, Linux or Windows PC (Run JS File In Visual Studio Code)

Показать описание
Like the video 🙂 and follow instructions below:
==============================
# Install NVM (Node Version Manager)
# Load NVM (may vary depending on shell)
source ~/.bashrc # or ~/.zshrc for zsh users
nvm install --lts
node -v
npm -v
# Install Prettier globally for formatting
npm install -g prettier
# Create a new directory for your JavaScript project
mkdir my-js-app
cd my-js-app
# Open the project in VSCode
code .
# If the "code" command is not recognized, add it to your PATH (in VSCode: View, then Command Palette, then type 'Shell Command: Install code in PATH')
# Create a new JavaScript file
# Run the JavaScript file in the terminal
# Run Prettier to format the JavaScript file
# Install TypeScript
npm install -g typescript
# Install PM2 for continuously running JavaScript files
npm install -g pm2
# Start the JavaScript app with PM2 to run continuously
# Install Create React App to set up React applications
npm install -g create-react-app
# Create a new React app
npx create-react-app my-react-app
# Start the React app
cd my-react-app
npm start
Finally, we’ll introduce essential tools like Prettier for formatting, TypeScript for type safety, and PM2 for managing and continuously running JavaScript apps, making your workflow more efficient.
Timestamps:
============
00:00 How to install and run javascript in vscode (visual studio code)
00:08 how to install node js in vscode terminal command line (cmd)
00:25 why are we installing nodeJS from command line?
00:50 validate nvm with source bashrc or zshrc
01:11 nvm install lts
01:27 what version of node or rpm do I have command line terminal
01:39 install prettier from command line
01:50 how to create new directory in command line in vscode using mkdir command
02:00 how to open current js project directory using code command in vscode
02:05 how to add code command to path (using shell command)
02:30 open javascript project in vscode
02:55 how to create new js file from command line in vscode
03:07 simple javascript program (how to run javascript in vscode, visual studio cod)
03:16 how to run javascript file in cmd terminal in vscode (command line)
03:37 how to use prettier example to format js file
04:08 how to install typescript in vscode from command line (terminal)
04:20 how to install pm2 in vscode from command line
04:32 pm2 start app to continuously run a javascript file
04:40 how to install react js with npm on command line in vscode (vs code)
05:00 how to run react app as a localhost server in vscode
==============================
# Install NVM (Node Version Manager)
# Load NVM (may vary depending on shell)
source ~/.bashrc # or ~/.zshrc for zsh users
nvm install --lts
node -v
npm -v
# Install Prettier globally for formatting
npm install -g prettier
# Create a new directory for your JavaScript project
mkdir my-js-app
cd my-js-app
# Open the project in VSCode
code .
# If the "code" command is not recognized, add it to your PATH (in VSCode: View, then Command Palette, then type 'Shell Command: Install code in PATH')
# Create a new JavaScript file
# Run the JavaScript file in the terminal
# Run Prettier to format the JavaScript file
# Install TypeScript
npm install -g typescript
# Install PM2 for continuously running JavaScript files
npm install -g pm2
# Start the JavaScript app with PM2 to run continuously
# Install Create React App to set up React applications
npm install -g create-react-app
# Create a new React app
npx create-react-app my-react-app
# Start the React app
cd my-react-app
npm start
Finally, we’ll introduce essential tools like Prettier for formatting, TypeScript for type safety, and PM2 for managing and continuously running JavaScript apps, making your workflow more efficient.
Timestamps:
============
00:00 How to install and run javascript in vscode (visual studio code)
00:08 how to install node js in vscode terminal command line (cmd)
00:25 why are we installing nodeJS from command line?
00:50 validate nvm with source bashrc or zshrc
01:11 nvm install lts
01:27 what version of node or rpm do I have command line terminal
01:39 install prettier from command line
01:50 how to create new directory in command line in vscode using mkdir command
02:00 how to open current js project directory using code command in vscode
02:05 how to add code command to path (using shell command)
02:30 open javascript project in vscode
02:55 how to create new js file from command line in vscode
03:07 simple javascript program (how to run javascript in vscode, visual studio cod)
03:16 how to run javascript file in cmd terminal in vscode (command line)
03:37 how to use prettier example to format js file
04:08 how to install typescript in vscode from command line (terminal)
04:20 how to install pm2 in vscode from command line
04:32 pm2 start app to continuously run a javascript file
04:40 how to install react js with npm on command line in vscode (vs code)
05:00 how to run react app as a localhost server in vscode