Skip to content

GDG-Nantes/devfest2017

Repository files navigation

Devfest Nantes 2017 Website

Codeship Status

https://devfest2017-d7133.firebaseapp.com/

Based on Hoverboard Project Template is brought by Oleh Zasadnyy from GDG Lviv.

Setup

📖 Full documentation.

Prerequisites

Install polymer-cli:

npm i -g polymer-cli

and Bower:

npm i -g bower
Install dependencies
bower install
Start the development server

This command serves the app at http://localhost:8080 and provides basic URL routing for the app:

polymer serve

📖 Read more in setup docs.

Docker based development env

If you don't want to bother with the dependencies, you can develop in the docker container.

Build:

docker build -t hoverboard .

and run:

docker run -it -v "$PWD":/app -p 8080:8080 hoverboard

📖 Read more in docker docs.

Build

This command performs HTML, CSS, and JS minification on the application dependencies, and generates a service-worker.js file with code to pre-cache the dependencies based on the entrypoint and fragments specified in polymer.json. The minified files are output to the build/unbundled folder, and are suitable for serving from a HTTP/2+Push compatible server.

In addition the command also creates a fallback build/bundled folder, generated using fragment bundling, suitable for serving from non H2/push-compatible servers or to clients that do not support H2/Push.

polymer build

Or you can build in Docker container:

docker run -v "$PWD":/app hoverboard polymer build

📖 Read more in deploy docs.