Polymer 3 project - Start from scratch
- Install Node.js
Go to Node website
- Install Yarn (npm should work as well)
Go to Yarn website
A very cool dependency management
-
Clone or Download the project
-
Install dependencies
$ cd my-project
$ yarn install
a) for dev build
$ cd my-project
$ yarn run dev
b) for prod build
$ cd my-project
$ yarn run build
Install http-server
A command-line http server
$ yarn global add http-server
then
$ cd my-project\dist
http-server
- Go to localhost
a) for dev build: localhost:8000
b) for prod build: localhost:8080
- include 3rd-party JS library
- Webpack
- Favicons Webpack Plugin
- Director router
- NO unit/integration test has been developed
This is a very complete example, I hope this will help you to understand better Polymer 3.