Fetch Data from Firebase Realtime Database with React and Next.js | Step-by-Step Tutorial

  Рет қаралды 5,805

Bug Ninza

Bug Ninza

9 ай бұрын

Welcome back, everyone! In this comprehensive tutorial, I'm Rohit, your host, and I'll guide you through the process of fetching data from Firebase's Realtime Database using React and Next.js. If you encounter any issues or have questions, feel free to reach out in the comments or via my social media handles (linked below). Let's dive right in!
𝐁𝐨𝐨𝐤 ( 𝐅𝐫𝐨𝐦 𝐂𝐨𝐝𝐞 𝐓𝐨 𝐂𝐨𝐧𝐧𝐞𝐜𝐭𝐢𝐨𝐧𝐬: 𝐀 𝐃𝐞𝐯𝐞𝐥𝐨𝐩𝐞𝐫’𝐬 𝐠𝐮𝐢𝐝𝐞 𝐭𝐨 𝐛𝐮𝐢𝐥𝐝𝐢𝐧𝐠 𝐚 𝐬𝐨𝐜𝐢𝐚𝐥 𝐜𝐚𝐫𝐞𝐞𝐫 ) (I'm the Author)
Amazon India: amzn.eu/d/axYh0B4
Amazon Worldwide: a.co/d/acqJOYR
Gumroad (pdf): ninza7.gumroad.com/l/codetoco...
Join this channel to get access to perks and code :
/ @bugninza
Support My work
/ _ninza7
Connect with me:
Twitter or X Community: / 1712837723860725988
Instagram: / _ninza7
Discord: / discord
Twitter or X Profile: / _ninza7
Video edited by: / kaushal_2319
Music Source: KZbin Music Library
Thanks for watching, and I'll see you in the next Next.js video!
Tags:
Next.js tutorial, Firebase Realtime database tutorial, firebase, Tailwind CSS, Web development tutorial, React JavaScript, Full-stack development,
#reactnative #javascript #webdevelopment #reactjs #nextjstutorial #nextjs #code #coding #guide #firebase

Пікірлер: 10
@SananKhan-br1pn
@SananKhan-br1pn 2 ай бұрын
sir i have one question you are trying to get all data from firestore database but i want current user data which one is currently logged in
@developerpaul46
@developerpaul46 8 ай бұрын
Thanks
@BugNinza
@BugNinza 8 ай бұрын
Welcome 🤗
@saarza9991
@saarza9991 6 ай бұрын
Thanks a lot sir. If you are free, can you show how to make admin panel in Nextjs with firebase auth that display data from firebase ?
@BugNinza
@BugNinza 6 ай бұрын
sure! stay tuned
@aceon2ndserve
@aceon2ndserve 4 ай бұрын
What is the difference of real time db and firestore cloud db ?
@BugNinza
@BugNinza 4 ай бұрын
Real time db: JSON tree, simple lookups, low-latency sync, presence support. Firestore: document collection, complex queries, scalability, offline support for web.
@shenizelspear2278
@shenizelspear2278 9 күн бұрын
not working for me but great content.... also you should add the code in your videos, anyways i typed it so you[reader] dont have to...peace;) "use client" import {get , ref } from 'firebase/database'; import {useEffect, useState} from "react"; import {database} from '../firebaseConfig'; export default function Home() { const [location, setlocation]= useState([]); useEffect(() => { const locationRef=ref(database, 'location'); get(locationRef).then((snapshot)=>{ if (snapshot.exists()){ const LocationArray= object.entries(snapshot.val()).map(([id,data])=>({ id, ...data, })); setlocation(LocationArray) }else{ console.log('no data available'); } }).catch((error)=>{ console.error(error); }) },[]) return( Fire Alert {location.map((location)=>( {location.title} {location.subtitle} ))} ) } i had a location node on firebase instead of users(shown in video), so its edited.
@LearnCodeInHindi
@LearnCodeInHindi Ай бұрын
Hi @Rohit, I need your help. I have created a next project using typescript. I am able to fetch data from firebase , its getting printed on console but its taking too much time to render on ui. Sometimes it takes 5 mins , sometimes 20 mins and sometimes it never renders. I really need your help. Unable to find solution anywhere. Please reply.
@PratiyushGupta-vu6tu
@PratiyushGupta-vu6tu Ай бұрын
I am also having same problem
Fetching Data Doesn't Get Better Than This
6:58
Josh tried coding
Рет қаралды 92 М.
3M❤️ #thankyou #shorts
00:16
ウエスP -Mr Uekusa- Wes-P
Рет қаралды 15 МЛН
THEY made a RAINBOW M&M 🤩😳 LeoNata family #shorts
00:49
LeoNata Family
Рет қаралды 35 МЛН
Can You Draw A PERFECTLY Dotted Line?
00:55
Stokes Twins
Рет қаралды 111 МЛН
Realtime Features for React: Easier Than You Think
14:58
Josh tried coding
Рет қаралды 46 М.
I built a chat app in 7 minutes with React & Firebase
8:53
Fireship
Рет қаралды 1,3 МЛН
JavaScript Visualized - Event Loop, Web APIs, (Micro)task Queue
12:35
Using Cloud Firestore For Your REACT Backend 2023 | CRUD App
51:15
Travis Media
Рет қаралды 19 М.
Getting started with the Firebase Realtime Database on the web
10:18
3M❤️ #thankyou #shorts
00:16
ウエスP -Mr Uekusa- Wes-P
Рет қаралды 15 МЛН