Cov txheej txheem:

Koj puas tuaj yeem siv firebase nrog cov tshuaj tiv thaiv ib txwm muaj?
Koj puas tuaj yeem siv firebase nrog cov tshuaj tiv thaiv ib txwm muaj?

Video: Koj puas tuaj yeem siv firebase nrog cov tshuaj tiv thaiv ib txwm muaj?

Video: Koj puas tuaj yeem siv firebase nrog cov tshuaj tiv thaiv ib txwm muaj?
Video: KOB THOJ - KOJ PUAS TSEEM CHIM [OFFICIAL MV] 2024, Kaum ib hlis
Anonim

Firebase yog Backend raws li Kev Pabcuam (BaaS) uas muab qhov zoo dua rau cov neeg tsim khoom txawb uas siv React Native rau kev tsim cov ntawv thov mobile. Raws li ib tug React Native developer, los ntawm siv Firebase koj tuaj yeem ua tau pib tsim ib qho MVP (yam tsawg kawg ntawm cov khoom siv tau), ua kom cov nqi qis thiab kev tsim qauv daim ntawv thov ceev heev.

Yog li ntawd, yuav ua li cas kuv ntxiv firebase los teb haiv neeg?

Rau tsim ib new firebase qhov project, mus rau koj Firebase console, nyem Ntxiv Qhov project”, ntaus hauv koj qhov project lub npe thiab xaiv koj cheeb tsam. Hauv Firebase console, qhib cov ntawv pov thawj. Nyob rau hauv txoj kev kos npe tab, pab kom Facebook kos npe rau hauv txoj kev thiab qhia cov App ID thiab App Secret koj tau txais los ntawm Facebook.

Qhov thib ob, kuv yuav siv firebase li cas hauv kev hnov mob? Nrog me ntsis ntxiv cov ntaub ntawv thiab kev paub dhau los, koj yuav tsum tuaj yeem ua cov haujlwm no tsis muaj teeb meem!

  1. Nkag mus rau hauv Firebase Console thiab Tsim Ib Txoj Haujlwm Tshiab.
  2. Tsim Ib Daim Ntawv Thov Ua Kom Yooj Yim nrog tsim-react-app.
  3. Deploy the App rau Firebase Hosting.
  4. Yaug & Rov ua dua.
  5. Xa cov ntaub ntawv hauv koj lub App rau Firebase Database.

Ntxiv mus, yuav ua li cas kuv thiaj li tau txais cov ntaub ntawv los ntawm firebase hauv react haiv neeg?

1 Teb

  1. ib zaug koj tau teev ib qho kev siv, ex. cia cov neeg siv = firebase. database().
  2. Koj tau txais snapshot los ntawm ob qho ntawm cov kev no, thiab xav tau hu rau snapshot. val() kom muab cov ntaub ntawv.
  3. Tsuas yog muab lub snapshot. val() mus rau qhov sib txawv tshaj tawm sab nraud ntawm txoj kev nyeem ntawv, thiab koj zoo mus.

Kuv yuav tsum siv firebase?

Firebase yog qhov kev xaiv zoo yog tias koj npaj yuav sau ib daim ntawv thov tshiab lossis rov sau ib qho uas twb muaj lawm los ntawm kos. Ntxiv thiab, firebase pab tau yooj yim khaws cia thiab rov qab tau cov ntsiab lus dynamic. Yog tias koj txiav txim siab los tsim daim ntawv thov yam tsis muaj kev cai coding lub backend, firebase ua qhov no yooj yim.

Pom zoo: