GoogleChromeLabs/sample-pie-shop

Name: sample-pie-shop

Owner: GoogleChromeLabs

Description: Example e-commerce site to explore PWA (Progressive Web App) use cases.

Created: 2017-09-08 18:14:57.0

Updated: 2018-05-24 17:24:23.0

Pushed: 2018-05-24 17:41:43.0

Homepage:

Size: 622

Language: HTML

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

Online store PWA sample.

This sample will attempt to demonstrate some best practices on the web, taking into account the specific requirements of an e-commerce site. It will also demonstrate some useful features enabled by new technologies and APIs on the web.

Development

Create a fork of the original GoogleChromeLabs/sample-pie-shop and clone to your development environment.

Installing dependencies

Enter the project directory and run npm to install the dependencies.

ample-pie-shop
install
Running the development server

The project uses Firebase Cloud Firestore for product data. You will need to create a project and download the JSON configuration for the Admin SDK. You can do this in the Firebase console under https://console.firebase.google.com/project/YOUR-PROJECT-NAME/settings/serviceaccounts/adminsdk using the “Generate new private key” button. Save this to src/data/firebase-admin-key.json.

The serve target will build the site and serve it locally while watching for any changes. Once the script completes the initial build, the site should be available on http://localhost:3000/. The FB_KEYS environment variable provides the relative path to the Firebase keys.

EYS=../data/firebase-admin-key.json npm run serve

Check package.json for the other build targets.

Run pie generation pipeline

Make sure you have firebase private key stored somewhere. Provide path to the firebase keys file as an env variable.

EYS=../data/firebase-admin-key.json npm run tools:import_products

This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.