DEV Community

smm7530
smm7530

Posted on • Updated on

Lab 1 Posting

We need to download nodeJS, npm, open-wc, VSCode, lit?

NodeJS

Definition

NodeJS is a service-side platform on JavaScript to build network applications.

Download

Google NodeJS and found its website.

Function

  • It can add, delete and modify data on my database
  • It can create, open, read, write, delete, and close files on the server

Advantages

  • It's free
  • It runs on different platforms (Windows, Mac, Linux, ect)
  • It's fast because it has non-blocking I/O model
  • Same code base between server and client
  • It requires less time and effort to learn and work with Node.js

Link to the nodeJS website

Video about what is nodeJS

Image description

npm (node package manager)

Definition

  1. It's an online platform helping JavaScript developers easily share packaged modules of code (The company is acquired by GitHub in 2020)
  2. It's also a command-line tool interact with repository.

Download

It's automatically downloaded with NodeJS.

Function

  • package installation
  • version management
  • dependency management

Advantages

  • It has local package installation which helps save on space
  • It helps reduce the development time
  • It provides package-lock.json

Link to install and test NodeJS, npm

Video about what is npm

open wc file

Download

type code npm init @open-wc

Link to instruction on opem-wc

Image description

run the code:
Image description

Discussion (0)