使用Workbox 2.0的Angular渐进式Web应用程序

网友投稿 636 2022-10-22

使用Workbox 2.0的Angular渐进式Web应用程序

使用Workbox 2.0的Angular渐进式Web应用程序

A simple app for the PWA Workshop

Prerequisites

Latest stable versions of node, npm installed.Static web server with SPA support:

serve. Recommended and pre-configured.superstatic. Use this as a fallback option.

Installation

Clone the repo

git clone git@github.com:webmaxru/pwatter.git

Make sure you are on "workbox" branch:

git checkout workbox

Install dependencies:

npm install

Install "serve" dev webserver:

npm install serve -g

Run the server inside "pwatter" directory:

serve

Install Workbox CLI:

npm install workbox-cli --global

Open the browser:

http://localhost:5000/

You should see the page with PWAtter header.

We are ready to start the workshop! Follow the trainer instructions.

If for some reasons global npm package installation is not an option for you, you can install and run "serve" locally:

npm install servenode_modules/.bin/serve

版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。

上一篇:gopy 将Go语言开发的包载入到Python程序
下一篇:Angular4.x 日期管道
相关文章

 发表评论

暂时没有评论,来抢沙发吧~