hari-mohan-choudhary / polymer-shop-azure

A Polymer shop demo client app with Dotnet Kestrel server and Azure deployment script

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SHOP

Setup

Prerequisites

Install polymer-cli: (Need at least npm v0.3.0)

npm install -g polymer-cli
Setup
# Using CLI
mkdir shop
cd shop
polymer init shop

# Or cloning direct from GitHub
git clone https://github.com/Polymer/shop.git
cd shop
bower install

Generate Azure deployment script

This was done using Azure xplat cli

NOTE: Azure/azure-xplat-cli#3245

azure site deploymentscript --aspNetCore ./project.json

Start the development server

polymer serve

Run web-component-tester tests

polymer test

Build

polymer build

Test the build

This command serves the minified version of the app in an unbundled state, as it would be served by a push-compatible server:

polymer serve build/unbundled

This command serves the minified version of the app generated using fragment bundling:

polymer serve build/bundled

Deployment to Azure

Create Azure web site

Create a web app in an App Service Environment

Configure Web App

Configure NodeJS version

WEBSITE_NODE_DEFAULT_VERSION = 6.7.0

Configure private extensions

WEBSITE_PRIVATE_EXTENSIONS = 1

Install Yarn and Polymer CLI tools

azure-site-extensions

Deploy your web application

Now you can deploy your application using Azure deployment integration with Git local or Github repository:

Automating code deployment with GitHub and Azure

Author

@peterblazejewicz

About

A Polymer shop demo client app with Dotnet Kestrel server and Azure deployment script

License:MIT License


Languages

Language:HTML 93.9%Language:Batchfile 2.6%Language:C# 2.5%Language:JavaScript 1.0%