https://github.com/gabrieldarezzo/mobile-first
Estudo sobre Mobile-First
https://github.com/gabrieldarezzo/mobile-first
mobile-first offline-first push-notification push-notification-browser service-work
Last synced: 11 months ago
JSON representation
Estudo sobre Mobile-First
- Host: GitHub
- URL: https://github.com/gabrieldarezzo/mobile-first
- Owner: gabrieldarezzo
- Created: 2019-08-19T21:13:57.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2024-09-11T22:42:37.000Z (almost 2 years ago)
- Last Synced: 2025-05-17T07:07:52.878Z (about 1 year ago)
- Topics: mobile-first, offline-first, push-notification, push-notification-browser, service-work
- Language: JavaScript
- Homepage: https://gabrieldarezzo.github.io/mobile-first/
- Size: 52.7 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Demo online:
https://gabrieldarezzo.github.io/mobile-first/
Ps:
Repare que após acessar a primeira vez, ele os dados (

Link do Projeto:
https://github.com/gabrieldarezzo/mobile-first
Service Work Lifecycle:
docs/sw-lifecycle.png
[x] Offline First (Após abrir 1x, é possivel abrir o site novamente mesmo se estiver fechado)
-> Está no metro, sem sinal e abriu o site de Notícia, vai navegar tranquilamente mesmo sem sinal/offline (pelo menos no que está no cache)
[ ] 1.a Enviar Notificação pelo Browser (mesmo fechado)
-> Ex: Portal de Notícia, ao cadastrar Notícia notifica todo mundo que tem uma Notícia nova.
# How to Run:
```shell
npm install
node server.js
```
Link de apoio:
https://developers.google.com/web/fundamentals/codelabs/offline/?hl=pt-br
Validar Json
http://jsonviewer.stack.hu/
https://developers.google.com/web/updates/2015/03/push-notifications-on-the-open-web?hl=pt-br
Exemplo de Notificação:
https://serviceworke.rs/push-get-payload_demo.html