- Create a new folder in htdocs with the name of project
- Open terminal
- In terminal,position in the folder of project
- Create a new element with termination .html, in my case index.html
- If to use POLYMER go to the link https://elements.polymer-project.org
- For my project, I will use paper element --> paper-drawer-panel
- Copy the second section of the component paper-drawer
- Also, copy bower command that is to the left in the bar
- Paste in the body of the index.html
- If to use, material design paste in the head and in the body: "https://code.getmdl.io/1.2.1/material.indigo-pink.min.css" and "https://code.getmdl.io/1.2.1/material.min.js"
- Create folder with the command: bower init
- NOTE: will be create a folder called bower.json
- Save material design in bower with the command: bower install material-design-lite --save
- NOTE: will be save in bower.json
- Link in the index.html file from the bower_components folder as we take the element in the polymer with rel="import"
- To create a toolbar, search in the page of polymer, paper elements --> paper tool
- Copy the first option
- Copy in the toolbar main
- Link the corresponding librarys in the head
- Go to the terminal
- Create a new element .html with the name elements
- Put all imports in this new element
- Redirect in the head of the index.html
- bower install (package) --save
- with is="custom-style" styles applies to polymer