+ 11
Firebase read and write
How to use js to initial, update and read a variable through Firebase database as online storage?
14 Antworten
+ 9
i will try to make a small CRUD code in the playground
hang tight xD
in the meanwhile, here's the scoreboard script i made a while back, if you look into it, you could find some of the things you are lokking for
the script
https://cdn.rawgit.com/bureyburey/Scoreboard-Module/master/scoreboard.js
the code on playground
https://code.sololearn.com/Wb3UALD0atIG/?ref=app
+ 7
@Calvin
i think i am done
it's far from perfect xD
but implements all of CRUD operations
you can create a new post
you can update it (must have same name in the By: input box)
delete post (same as above, must have same name in By: input box)
and obviously reading messages
+ 6
which firebase version?
2.x or 3.x
+ 6
and by online storage you mean the database service or the file storage service?
+ 6
slowly the code is forming up
i am trying to put as many comments as possible
https://code.sololearn.com/WtFXsv7tdPW0/?ref=app
as of now only create/read is available
+ 6
leave a message in the example if you have any queations :)
+ 5
google
self practice
trial and error
there really isn't anything special to it
+ 2
Sure, I will your code later..
+ 1
@burey latest version.
+ 1
@Burey Thanks again :)
0
@Burey as mentioned in the question, I need value store through Firebase database.
0
Thank you @Burey. Its really help.
0
burey can you pls say where you learned to use firebase?
0
ok thank you!