https://github.com/gabrieldarezzo/sot-vue-pwa
Estudos de PWA com VueJs
https://github.com/gabrieldarezzo/sot-vue-pwa
firebase pwa vue vuefire vuejs
Last synced: 3 months ago
JSON representation
Estudos de PWA com VueJs
- Host: GitHub
- URL: https://github.com/gabrieldarezzo/sot-vue-pwa
- Owner: gabrieldarezzo
- Created: 2018-07-30T18:28:57.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2018-07-30T18:44:02.000Z (almost 7 years ago)
- Last Synced: 2024-12-27T05:41:58.853Z (5 months ago)
- Topics: firebase, pwa, vue, vuefire, vuejs
- Language: JavaScript
- Size: 685 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Curso
https://www.schoolofnet.com/curso-pwa-com-vuejs/Neste curso, você conhecerá as bases de um Progressive Web app. Apresentaremos o Service Worker e como criá-lo para responder com arquivos salvos em cache, em vez de utilizar a requisição real para disponibilizar o projeto criado com Vue, mesmo quando estivermos offline. Ensinaremos como configurar um arquivo de manifesto para dispositivos móveis e como usar o Firebase e um Service Worker para entregar notificações, quando o usuário não estiver com o site aberto. Faremos tudo isso utilizando o Vue-cli.
# check-list
> A Vue.js project
## Build Setup
``` bash
# install dependencies
npm install# serve with hot reload at localhost:8080
npm run dev# build for production with minification
npm run build# build for production and view the bundle analyzer report
npm run build --report
```For detailed explanation on how things work, checkout the [guide](http://vuejs-templates.github.io/webpack/) and [docs for vue-loader](http://vuejs.github.io/vue-loader).
Dados do Postman
[POST] https://fcm.googleapis.com/fcm/sendHEADERS
```
Content-Type application/json
Authorization key=CHAVE_DO_SERVIDOR
```
CHAVE_DO_SERVIDOR = https://console.firebase.google.com/project/
```
{
"registration_ids": [
"ID_DO_REGISTRATION"
],
"notification" : {
"title" : "Mensagem para o Firebase",
"body" : "Teste firebase"
},"data" : {
"nome" : "Gabriel Darezzo"
}
}
```### Caso não queira usar o PostMan, e já criar um servidor direto, tem um carinha bem simples em php, q simplesmente precisa enviar os registration_ids em forma de ID
https://github.com/mattg888/GCM-PHP-Server-Push-MessageCertificado kkkk:
https://github.com/gabrieldarezzo/sot-vue-pwa/blob/master/doc/certificate-pwa-com-vuejs.jpg