Giter Club home page Giter Club logo

pwatter's Introduction

A simple app for the PWA Workshop

Prerequisites

  1. Latest stable versions of node, npm installed.
  2. Static web server with SPA support:
  • serve. Recommended and pre-configured.
  • superstatic. Use this as a fallback option.

Installation

  1. Clone the repo
git clone [email protected]:webmaxru/pwatter.git
  1. Make sure you are on "workbox" branch:
git checkout workbox
  1. Install dependencies:
npm install
  1. Install "serve" dev webserver:
npm install serve -g
  1. Run the server inside "pwatter" directory:
serve
  1. Install Workbox CLI:
npm install workbox-cli --global
  1. 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 serve
node_modules/.bin/serve

pwatter's People

Contributors

angular-cli avatar webmaxru avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

pwatter's Issues

Mock SwPush and SwUpdate in development

With ng serve I get "No provider for SwPush" and "No provider for SwUpdate" because the ServiceWorkerModule is only registered in production environment:

environment.production ? ServiceWorkerModule.register('/ngsw-worker.js') : []

Can SwPush and SwUpdate be mocked in development mode somehow?

SwPush Issues Angular 5

I have attached Screen Shot
I don't know what is the
exact problem more than 3 weeks . ngsw-config.json its calling notification data from server but me it is not working .Show in below. Kindly do the Needful.
prtscr capture_3
a new angular service worker creating automatic progressive web apps part 2 practice - mozilla firefox
control-push component ts - pwatter-ngsw - visual studio code_2
ngsw-config json - pwatter-ngsw - visual studio code

Question about Datagroups

I see in your ngsw-config.json that you have a dataGroups section with what seems to be relative paths: /favorites and /timeline. However, these are API calls to https://pwa-workshop-api.herokuapp.com. Can you explain how this works and why instead of referencing relative routes like the /favicon.ico, it matches a URL like the font URLs? And if such is the case, will it be any different with URLs that require URL parameters? Thanks!

Uncaught (in promise): Error: StaticInjectorError[SwPush]:

Wow Awesome Bro for sharing your knowledge in Angular 5 using PWA.
I have issue in SwPush and i have attached screen shot,kindly find the attachment
Can you share me the simple example of source code while click the button option it will show the notification using swPush in Angular 5 with easy example. Kindly do the needful Bro.

This is my Mail ID [email protected]

swangular5 - google chrome

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.