sample-media-pwa

A sample video-on-demand media Progressive Web App

Github星跟踪图

Please note: This app is being developed. There may be bugs, and everything is subject to change.

Sample Media (VOD) App

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.

biograf_small

Running the site locally

  1. Clone the repo
  2. cd sample-media-pwa
  3. npm install

Setting up some secrets

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:

// oauth.js - do not use in production!
// @see https://cloud.google.com/nodejs/getting-started/authenticate-users
module.exports = {
  clientID: 'lolztehclientid',
  clientSecret: 'suchhiddenmanysecretwow',
  callbackURL: 'http://localhost:8080/auth/google/callback',
  accessType: 'offline'
};
// session.js - do not use in production!
// @see https://cloud.google.com/nodejs/getting-started/authenticate-users
module.exports = {
  resave: false,
  saveUninitialized: false,
  secret: 'totallyasecret',
  signed: true,
  memcacheURL: '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.

主要指标

概览
名称与所有者googlearchive/sample-media-pwa
主编程语言JavaScript
编程语言JavaScript (语言数: 3)
平台
许可证Apache License 2.0
所有者活动
创建于2017-02-03 19:43:36
推送于2019-10-08 20:19:25
最后一次提交2019-10-08 21:19:23
发布数0
用户参与
星数898
关注者数72
派生数185
提交数124
已启用问题?
问题数34
打开的问题数18
拉请求数5
打开的拉请求数4
关闭的拉请求数3
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?