[My Radar] Weekly Free Knowledge About WeWeb and No-code

[Firebase] Unleashing Firebase’s Superpowers in WeWeb

In the first article on my Radar - which is a blog platform where I will be posting a lot of no-code and expecially WeWeb content, I demonstrate how to integrate Firebase services into WeWeb.

I do this by embedding Firebase modules using a tool from Statechange - thanks @raydeck, I walk through the process of setting up and initializing Firebase within a WeWeb project.

The following are the informations that you’ll find in the article:

Embedding Firebase

To integrate Firebase, I use custom JavaScript blocks in WeWeb, starting with importing necessary Firebase modules like initializeApp and getFirestore. I then link these modules to WeWeb’s window object, ensuring global accessibility.

Making Scripts Embeddable

The article then details transforming the script for compatibility with WeWeb’s editor using a tool from Statechange. This involves placing the script into a custom JavaScript block within an On app load workflow.

Utilizing Firebase in WeWeb

Once integrated, Firebase can be used similarly to Supabase within WeWeb. The article provides an example of fetching documents from Firestore, demonstrating how to call Firebase instances from custom JavaScript blocks.

3 Likes

[No-code] Mastering Data Types for Crafting Robust No-Code Apps

In this week’s Radar article I yap a little about the essential primitive data types crucial for efficient no-code development. I cover the basics of strings, numbers, booleans, null, and undefined, explaining their importance and providing practical examples.

Why String is Not a Number

Understanding the differences between strings and numbers is vital. Mixing these data types can lead to unexpected results and bugs. I discuss various methods of concatenating strings and variables, including a special technique that enhances readability and maintainability in your no-code apps, making them more intuitive and easier to manage.

The Null and Undefined Comparison

Although null and undefined might seem similar, they serve different purposes. I explore their distinct roles and practical applications in no-code development. Understanding these differences can help you handle missing or uninitialized data more effectively, leading to more robust and reliable applications.

Truthy and Falsy Values

In JavaScript, values are not just true or false; they can also be truthy or falsy. This concept extends the traditional boolean logic, allowing for more nuanced and flexible conditions in your code. I explain how to leverage truthy and falsy values to create more dynamic and responsive no-code applications.

3 Likes