Giter Club home page Giter Club logo

pwa-experiment's Introduction

pwa-experiment

一个PWA应用尝试

create-react-app 生成一个基本的React应用程序

start

npm install

启动应用

npm start

Lighthouse是来自Google的一个免费工具,可基于他们的PWA清单来评估你的应用

部署

通过Firebase部署 -- 在Firebase控制台中创建一个名为pwa-experiment的新项目 根目录执行

npm install -g firebase-tools
firebase login
firebase init

完成登录并启动初始化后, 回答以下问题: 当问你要为此目录设置什么Firebase CLI功能时,请使用空格键取消选择除托管之外的所有功能。

按回车,然后选择pwa-experiment作为项目。

当问你想用什么作为你的公开目录时,键入build,然后按回车键。

对于单页应用程序问题,回答no。

npm run build && firebase deploy

创建build文件夹,firebase部署,最后会返回一个地址

测试

手机上打开该地址并尝试将其保存到主屏幕,一旦从主屏幕打开,它应该就像一个原生应用。

更多

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.