Offline apps Using Ionic Framework and PouchDB
-
Upload
alvaro-viebrantz -
Category
Technology
-
view
385 -
download
18
Transcript of Offline apps Using Ionic Framework and PouchDB
![Page 1: Offline apps Using Ionic Framework and PouchDB](https://reader031.fdocumentos.com/reader031/viewer/2022012400/55cbf260bb61eb6f658b459a/html5/thumbnails/1.jpg)
O F F L I N E A P P S C O M I O N I C E P O U C H D B
A LVA R O V I E B R A N T Z
![Page 2: Offline apps Using Ionic Framework and PouchDB](https://reader031.fdocumentos.com/reader031/viewer/2022012400/55cbf260bb61eb6f658b459a/html5/thumbnails/2.jpg)
P O U C H D BO Q U E É I S S O ?
?
![Page 3: Offline apps Using Ionic Framework and PouchDB](https://reader031.fdocumentos.com/reader031/viewer/2022012400/55cbf260bb61eb6f658b459a/html5/thumbnails/3.jpg)
C O U C H D B
• NoSQL orientado a documentos
• Views baseados em map/reduce em JS
• Suporte a arquivos (attachments)
• Segundo um autor desconhecido:
• “O CouchDB é ruim em várias coisas, menos em sincronizar.”
![Page 4: Offline apps Using Ionic Framework and PouchDB](https://reader031.fdocumentos.com/reader031/viewer/2022012400/55cbf260bb61eb6f658b459a/html5/thumbnails/4.jpg)
C O U C H D B E M J S = P O U C H D B
• Implementar um CouchDB que pode ser usado no navegador, dispositivos móveis e server side (NodeJS)
• Camada de Storage modular
• WebSQL
• IndexedDB
• Memory
• SQLite !!!
![Page 5: Offline apps Using Ionic Framework and PouchDB](https://reader031.fdocumentos.com/reader031/viewer/2022012400/55cbf260bb61eb6f658b459a/html5/thumbnails/5.jpg)
M E U P R Ó P R I O I C L O U D ?
• Pode ser sincronizado com outros CouchBD
• Sua própria instância
• Alguns Cloud Providers:
• IBM Cloudant
• CouchBase
• IrisCouch
![Page 6: Offline apps Using Ionic Framework and PouchDB](https://reader031.fdocumentos.com/reader031/viewer/2022012400/55cbf260bb61eb6f658b459a/html5/thumbnails/6.jpg)
M E U P R Ó P R I O I C L O U D ? P O D E S E R S I N C R O N I Z A D O C O M O U T R O S C O U C H B D S U A P R Ó P R I A I N S TÂ N C I A
![Page 7: Offline apps Using Ionic Framework and PouchDB](https://reader031.fdocumentos.com/reader031/viewer/2022012400/55cbf260bb61eb6f658b459a/html5/thumbnails/7.jpg)
C O R D O VA + P O U C H D B
• Usar como storage o SQLite
• Storage infinito
• Instalando plugin nativo :
• Forçando o uso do storage :
>ionic plugin add io.litehelpers.cordova.sqlitestorage
new PouchDB(‘nomedatabase’, { adapter: ‘websql’ })
![Page 8: Offline apps Using Ionic Framework and PouchDB](https://reader031.fdocumentos.com/reader031/viewer/2022012400/55cbf260bb61eb6f658b459a/html5/thumbnails/8.jpg)
🍃🍂🌸 B O TA N I K A 🌸🍂🍃
![Page 9: Offline apps Using Ionic Framework and PouchDB](https://reader031.fdocumentos.com/reader031/viewer/2022012400/55cbf260bb61eb6f658b459a/html5/thumbnails/9.jpg)
🍃🍂🌸 B O TA N I K A 🌸🍂🍃
![Page 10: Offline apps Using Ionic Framework and PouchDB](https://reader031.fdocumentos.com/reader031/viewer/2022012400/55cbf260bb61eb6f658b459a/html5/thumbnails/10.jpg)
B O TA N I K A
• Usuário pode estar sem rede e totalmente offline
• Modelo flexível de dados
• Suporte a diferentes tipos de pesquisas
• Arquivos
• Sincronização
• Trabalhar os dados depois
![Page 11: Offline apps Using Ionic Framework and PouchDB](https://reader031.fdocumentos.com/reader031/viewer/2022012400/55cbf260bb61eb6f658b459a/html5/thumbnails/11.jpg)
D E M O
![Page 12: Offline apps Using Ionic Framework and PouchDB](https://reader031.fdocumentos.com/reader031/viewer/2022012400/55cbf260bb61eb6f658b459a/html5/thumbnails/12.jpg)
D I S P O N Í V E L E M B R E V E E M S U A C A S A
github.com/alvarowolfx/botanika