Follow the instructions below to install, build, and run the Project Hoverboard locally in less than 15 minutes.
Or you may use Docker container for development
-
Install Node.js (
node
) version 4 or above. Node.js includes Node Package Manager (npm
) by default. The Hoverboard usesnpm
for Polymer CLI. -
Verify that you're running
node
version 4 or above andnpm
version 2.15 or above.node -v v4.4.7 npm -v 2.15.8
-
Install Bower.
npm install -g bower
Note: the
-g
flag installs Gulp and Bower globally, so you may need to execute the script withsudo
privileges. The reason they are installed globally is because some scripts in the Hoverboard expectbower
to be available from the command line. -
Install polymer-cli:
npm i -g polymer-cli
-
Fork this repository
-
Clone it locally.
-
cd
into the base directory of your Hoverboard project. -
Install the application dependencies.
bower install
The diagram below is a brief summary of the directories within the PSK.
/
|---bower_components/
|---build/
| |---bundled/
| |---unbundled/
|---data/
|---docs/
|---images/
|---scripts/
|---src/
| |---behaviors/
| |---effects/
| |---elements/
| |---js-wrappers/
| |---pages/
| |---styles/
|
bower_components/
is the place for project dependencies.build/
is the directory to deploy to production.bundled/
- here all fragments are bundled together to reduce the number of file requests. Optimal for sending to clients or serving from servers that are not HTTP/2 compatible.unbundled/
- an app where fragments are unbundled. Optimal for HTTP/2-compatible servers and clients.data/
folder with all data for the template including config, blog, partners, schedule, sessions, speakers, team and videos.docs/
contains optional "recipes" (how-to guides) for adding features to your application or for using optional tools or editors.images/
is for static images.scripts/
is the place for JS scripts.src/
is where you store all of your source code and do all of your development.behaviors/
folder for custom behaviors.effects/
is where you keep your effects for instance scroll-effects.elements/
is where you keep your custom elements.js-wrappers/
is where you keep your custom elements.pages/
is where you keep your pages' description.styles/
houses your app's shared styles and CSS rules.
The Hoverboard is ready to be built and ran locally.
-
cd
into the base directory of your PSK project. -
Serve the app locally.
polymer serve
-
Build the app.
polymer build
More options you can find on polymer-cli repository.
Now that your Hoverboard is up and running, learn how to configure app for your needs, or how to deploy the app to the web.