Name: sample-media-pwa
Owner: GoogleChromeLabs
Description: A sample video-on-demand media Progressive Web App
Created: 2017-02-03 19:43:36.0
Updated: 2018-05-24 14:42:26.0
Pushed: 2018-04-19 10:58:47.0
Size: 848
Language: JavaScript
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
Please note: This app is being developed. There may be bugs, and everything is subject to change.
This is a sample media app to demonstrate media functionality in the context of a Progressive Web App. The build of this site is being cataloged on YouTube as part of the Chrome Developers Developer Diary series.
cd sample-media-pwa
npm install
Once the entire internet has been cloned into your node_modules
folder you'll need to create
src/config
, into which you will need to place a couple of files: oauth.js
and session.js
.
These are files which contain secrets and keys, so you can either
create the appropriate values,
or you can put some placeholder info in:
auth.js - do not use in production!
see https://cloud.google.com/nodejs/getting-started/authenticate-users
le.exports = {
ientID: 'lolztehclientid',
ientSecret: 'suchhiddenmanysecretwow',
llbackURL: 'http://localhost:8080/auth/google/callback',
cessType: 'offline'
avascript
ession.js - do not use in production!
see https://cloud.google.com/nodejs/getting-started/authenticate-users
le.exports = {
save: false,
veUninitialized: false,
cret: 'totallyasecret',
gned: true,
mcacheURL: 'localhost:11211'
Finally, with that done you should be able to run: npm run dev
.
The videos are not included in the repo, but rather are served from a Google Cloud Storage bucket. They are served with CORS headers, meaning that you will need to run the local copy of the server at port 8080.