polymer

Creating app using Polymer Starter Kit

Introduction#

Polymer Starter Kit is an excellent solution to start building Progressive Web Apps. It offers a responsive material design User Interface, Page Routing, Offline-first service.

Syntax#

  • Polymer: Command for initiating polymer cli
  • Polymer init: Presents a list of templates to choose to build your element/app
  • npm: Initiates the Node.js Package Manager CLI interface
  • npm install: Installs a package
  • npm install -g: Installs a package globally on your system. Useful for CLI tools

Installing Polymer Starter Kit

  1. Ensure that you have Polymer CLI installed in your system globally. If not, open your command line/terminal interface and run this command: npm install -g polymer-cli

Note: If you’re an Ubuntu user, you may have to prefix the above code with sudo keyword.

  1. After Polymer CLI installs, run this command

cd [YOUR DIRECTORY IN WHICH YOU WANT TO START YOUR PROJECT]

polymer init

  1. You will be given 4 options. Use arrows keys to go to the 4th one i.e. starter-kit. Hit Enter key.

All the required files will be downloaded in your selected directory.


This modified text is an extract of the original Stack Overflow Documentation created by the contributors and released under CC BY-SA 3.0 This website is not affiliated with Stack Overflow