Skip to content

Commit e34c841

Browse files
author
Sabbir Ahmed
authored
Merge pull request #688 from mah-shamim/mah-shamim-firebase-cheat-sheet
Mah shamim firebase cheat sheet
2 parents 3e917a6 + c56a584 commit e34c841

1 file changed

Lines changed: 91 additions & 0 deletions

File tree

data/firebase.json

Lines changed: 91 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,91 @@
1+
{
2+
"id": "firebase",
3+
"title": "ফায়ারবেস",
4+
"slug": "firebase",
5+
"description": "ফায়ারবেসের প্রথম পণ্যটি ছিল ফায়ারবেস রিয়েলটাইম ডেটাবেস, একটি এপিআই যা iOS, অ্যান্ড্রয়েড এবং ওয়েব ডিভাইস জুড়ে অ্যাপ্লিকেশন ডেটা সিঙ্ক্রোনাইজ করে এবং ফায়ারবেসের ক্লাউডে সংরক্ষণ করে। পণ্যটি সফ্টওয়্যার বিকাশকারীদের রিয়েল-টাইম, সহযোগী অ্যাপ্লিকেশন তৈরিতে সহায়তা করে।",
6+
"colorPref": "#745fb5",
7+
"contents": [
8+
{
9+
"title": "প্রমাণীকরণ করা হচ্ছে (Authenticating)",
10+
"items": [
11+
{
12+
"code": "FB = new Firebase('https://xxx.firebase.io')\nFB.auth(TOKEN, (err, result) => { ···})\n"
13+
},
14+
{
15+
"code": "FB.authAnonymously(···)\nFB.authWithPassword(···)\nFB.authWithOAuthPopup(···)\nFB.authWithOAuthToken(···)\n"
16+
}
17+
]
18+
},
19+
{
20+
"title": "জিজ্ঞাসাবাদ (Querying)",
21+
"items": [
22+
{
23+
"code": "Users = FB.child('users')\nUsers\n .startAt(1000)\n .limit(50)\n .equalTo(priority, [name])\n .on 'child_added', (snap) -> ···"
24+
}
25+
]
26+
},
27+
{
28+
"title": "তালিকাগুলি (Lists)",
29+
"items": [
30+
{
31+
"code": "Posts = FB.child('posts')"
32+
},
33+
{
34+
"code": "post = Posts.push({ title: \"How to do things\", author: \"alan\" })"
35+
}
36+
]
37+
},
38+
{
39+
"title": "ব্যবহার (Using)",
40+
"items": [
41+
{
42+
"code": "Users = FB.child('users')"
43+
},
44+
{
45+
"definition": "তৈরি করুন",
46+
"code": "user = Users.push(first: \"Frank\", last: \"Sinatra\")\n"
47+
},
48+
{
49+
"definition": "পুনরুদ্ধার করুন",
50+
"code": "user = Users.child('alan') // gets `users/alan`"
51+
},
52+
{
53+
"definition": "হালনাগাদ করুন",
54+
"code": "user.set(first: \"Miles\", last: \"Davis\")"
55+
},
56+
{
57+
"code": "user.update(first: \"Miles\")"
58+
},
59+
{
60+
"code": "user.setWithPriority({ ··· }, priority)"
61+
},
62+
{
63+
"definition": "ধ্বংস করুন",
64+
"code": "user.remove()"
65+
},
66+
{
67+
"definition": "প্রাপ্তি (Getting)",
68+
"code": "user.name() // primary id"
69+
},
70+
{
71+
"code": "user.once('value', (snap) => {\n snap.name() // primary id\n snap.val() // value\n}, (err) => {\n ···\n})"
72+
},
73+
{
74+
"definition": "ট্রাভার্সাল (traversal)",
75+
"code": "user.parent()"
76+
}
77+
]
78+
},
79+
{
80+
"title": "তথ্যসূত্র",
81+
"items": [
82+
{
83+
"code": "https://www.firebase.com/docs/web/api/"
84+
},
85+
{
86+
"code": "https://www.firebase.com/docs/web/recipes.html"
87+
}
88+
]
89+
}
90+
]
91+
}

0 commit comments

Comments
 (0)