Avalados por :

Implementando Firebase Cloud Firestore en una Aplicación SAPUI5: Guía Paso a Paso

  • Creado 01/03/2024
  • Modificado 01/03/2024
  • 17 Vistas
0
Cargando...
Hi there!

Also a passion for SAPUI5 and Google Firebase ?

Then you just hit the right blog!

Back then at university I worked a lot with Google Firebase to Create Web and Native applications.

Since two years I'm spending my time working with SAP-Services. Especially with the SAPUI5 Framework in the SAP Full-Stack WebIDE .

There is no way I would switch the SAPUI5 Framework or the SAP Full-Stack WebIDE back for another framework or editor. Cause they rock!

But like we all know everything keeps evolving... so I tried to stay tuned and I started wondering...

Why not bringing 2 of my favorites together?

Well this is is exactly what I did!

Here you can find some other blogs where I used Firebase services in SAPUI5 Applications:

SAPUI5 FIREBASE BLOG SERIES:















Create SAPUI5 Applications with Google Firebase (this blog)
SAPUI5 Applications with Firebase Anonymous Authentication
SAPUI5 Applications with Firebase Cloud Messaging
Make SAPUI5 Firebase Applications Fiori Launchpad Ready

But let's continue with this one for the moment.

Using the Firebase Cloud Firestore Database as back-end together with the SAPUI5 Framework to create a Realtime Web Application.

So no polling data with setInterval functions. But real time data provided by the back-end.

In this blog I will show you how to implement Firebase into your UI5 Application. By creating, updating and deleting data in the back-end which will trigger automatic data updates in your application.

Let's get started!


1. Inicializa y configura tu proyecto de Firebase




The first thing you want and need to do, is create a Firebase project.

This can be done in the Firebase Console.

More information about Firebase .



1.1 Aquí tienes cómo empezar con Firebase en la web.





1.2 Aquí tienes cómo empezar con Cloud Firestore en la web.





1.3 Reglas de seguridad de Cloud Firestore

Use las siguientes reglas de seguridad solo en un entorno de prueba . Necesitamos estas reglas para poder consumir nuestros datos de la base de datos de Firebase Cloud Firestore en nuestra aplicación SAPUI5.
// Permitir acceso de lectura/escritura a todos los usuarios en cualquier condición
// Advertencia: **NUNCA** use este conjunto de reglas en producción; permite
// que cualquiera sobrescriba toda su base de datos.
service cloud.firestore {
  match /databases/{database}/documents {
    match /{document=**} {
      allow read
                
                
Pedro Pascal
Se unió el 07/03/2018
Pinterest
Telegram
Linkedin
Whatsapp

Sin respuestas

No hay respuestas para mostrar No hay respuestas para mostrar Se el primero en responder

contacto@primeinstitute.com

(+51) 1641 9379
(+57) 1489 6964

© 2024 Copyright. Todos los derechos reservados.

Desarrollado por Prime Institute

¡Hola! Soy Diana, asesora académica de Prime Institute, indícame en que curso estas interesado, saludos!
Hola ¿Puedo ayudarte?