Cov txheej txheem:

Kuv yuav txuas firebase li cas los teb cov haiv neeg?
Kuv yuav txuas firebase li cas los teb cov haiv neeg?

Video: Kuv yuav txuas firebase li cas los teb cov haiv neeg?

Video: Kuv yuav txuas firebase li cas los teb cov haiv neeg?
Video: KUV txaus LAWM - Paj Zoo Vaj [Official MV] Nkauj Tawm Tshiab 2023 2024, Kaum ib hlis
Anonim

Mus rau firebase .google.com thiab nyem "Mus rau Console" nyob rau sab xis saum toj. Nco ntsoov tias koj siv qhov tseeb version ntawm Firebase thiab tsis yog https://www.firebaseio.com. Tom ntej no, mus rau "Auth" tab> "Sau npe hauv txoj kev" tab thiab qhib "Email / Password" raws li koj tus kws kho mob nkag mus. thiab yog li ntawd!

Tsuas yog li ntawd, kuv puas tuaj yeem siv firebase nrog cov neeg tuaj yeem?

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 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.

Kuj Paub, Kuv yuav ua li cas 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.

Kuj Paub, Kuv yuav ntxiv firebase li cas los teb cov 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.

Kuv yuav siv firebase li cas hauv kev xav?

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.

Pom zoo: