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
Size: 622
Language: HTML
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
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.
Create a fork of the original GoogleChromeLabs/sample-pie-shop and clone to your development environment.
Enter the project directory and run npm
to install the dependencies.
ample-pie-shop
install
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.
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