DEV Community

elizabeth-delor
elizabeth-delor

Posted on • Edited on

1

Installing Open-WC

Applications Used:

  • Terminal
  • NodeJS (LTS)
  • Yarn

How to Access Terminal (Mac)

  • Press Command + Space to access spotlight search
  • Type in Terminal to Open

How to install NodeJS [includes npm]

  • Go to https://nodejs.org/en/ and download Node LTS
  • Once downloaded, go into download folder
  • Double Click and follow the installation prompts

To make sure it successfully installed...

  • Open Terminal
  • Type Node
  • If "Welcome to node js [vs #]" shows up, it has been successfully installed.

How to install Yarn

To make sure it successfully installed...

  • In Terminal type yarn
  • If "Success Already up-to-date" shows up, it has been successfully installed.

How to use Open-WC Boilerplate

  • In Documents Folder create a new folder called git
  • In git create another folder named your git username
  • Return to Terminal and enter cd Documents/git/~name of folder~
  • Enter npm init @open-wc
  • Select Scaffold a New Project
  • Select Web Component
  • Press A to select linting, testing and demoing
  • Select No for Typescript
  • Name Scaffold hello-world
  • Install using Yarn

Running Open-WC Boilerplate

  • Enter cd hello-world in Terminal
  • Enter npm run start

Postmark Image

Speedy emails, satisfied customers

Are delayed transactional emails costing you user satisfaction? Postmark delivers your emails almost instantly, keeping your customers happy and connected.

Sign up

Top comments (0)

Sentry image

See why 4M developers consider Sentry, “not bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay