A sample offline streaming video PWA built for web.dev/media
Перейти к файлу
Jaroslav Polakovič 9e4b68c3b2 Offline video to use 206 Partial Content w/ correct response headers. 2021-02-08 21:13:06 +01:00
.github Add initial docs & templates 2021-02-02 17:44:26 -08:00
public Transfer the internal PoC to public repo. Cleanup code style. 2021-02-05 16:30:23 +01:00
src Offline video to use 206 Partial Content w/ correct response headers. 2021-02-08 21:13:06 +01:00
.babelrc Transfer the internal PoC to public repo. Cleanup code style. 2021-02-05 16:30:23 +01:00
.editorconfig Transfer the internal PoC to public repo. Cleanup code style. 2021-02-05 16:30:23 +01:00
.eslintrc.json Update .eslintrc to use spaces only for indentation. 2021-02-07 19:12:26 +01:00
.gitignore Transfer the internal PoC to public repo. Cleanup code style. 2021-02-05 16:30:23 +01:00
CODE_OF_CONDUCT.md Add initial docs & templates 2021-02-02 17:44:26 -08:00
CONTRIBUTING.md Add initial docs & templates 2021-02-02 17:44:26 -08:00
ENGINEERING.md Add initial docs & templates 2021-02-02 17:44:26 -08:00
LICENSE Initial commit 2021-01-27 00:15:23 -08:00
README.md Transfer the internal PoC to public repo. Cleanup code style. 2021-02-05 16:30:23 +01:00
SECURITY.md Add initial docs & templates 2021-02-02 17:44:26 -08:00
firebase.json Ignore .firebaserc 2021-01-27 01:41:36 -08:00
package-lock.json Transfer the internal PoC to public repo. Cleanup code style. 2021-02-05 16:30:23 +01:00
package.json Transfer the internal PoC to public repo. Cleanup code style. 2021-02-05 16:30:23 +01:00
rollup.config.js Transfer the internal PoC to public repo. Cleanup code style. 2021-02-05 16:30:23 +01:00

README.md

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

App Name @todo

Description @todo

Running the site locally

Start by creating a new Firebase project from the console and then setup the Firebase CLI.

Important: This project uses a local Firebase emulator, which mean you need to install the Firebase CLI globally.

npm install -g firebase-tools

Clone this repository:

git clone git@github.com:xwp/web-dev-media.git

Go to the project folder:

cd web-dev-media

Login to Firebase:

firebase login

Initialize Firebase:

firebase init

Install the dependencies:

npm install

Start the Firebase emulator:

npm start

Build process

Project uses Rollup to build the main application JS file and the Service Worker file. No transpilation is done, the tooling exists mostly just to resolve ES Modules in the Service Worker context. Usage:

  • npm run build: Build the /public/js/index.js and /public/sw.js files.
  • npm run watch: Watch for changes to files in /src and rebuild files as necessary on the fly.