-
Notifications
You must be signed in to change notification settings - Fork 0
/
first-week-project.txt
81 lines (57 loc) · 1.76 KB
/
first-week-project.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
DONE: Firebase Auth:
DONE: Cloud Firestore:
database:
//users//:
user_1
user_2:
name: str
email: str
allergies: []
avatar: str
//recipes//:
recipe_1
recipe_2
authorName: str,
authorAvatar: str,
authorId: str
name: str
description: str
image: {
url:
size:
type:
filename:
}
steps: []
ingredient_keys: []
avg_rating: num
total_ratings: num
//reviews//:
review_1
review_2
text: str
rating: num
authorId: str
authorAvatar: str
authorName: str
//ingredients//:
ingredient_1
ingredient_2:
name: str
image: str
quantity: str
DONE: Security rules
- add necessary security rules
- max number of ingredients to add (40 maybe)
- make sure ingredients can only be (added) and (deleted) atomically using getAfter()
- who can read, create, edit, delete things:
DONE: Cloud Functions
- when a new (rating) is added, (avg_rating) of that recipe is recalculated and (total_ratings) is incremented or decremented
DONE: Hosting
- deploy app using firebase
NOTE: Storage
- (users) avatar
- (recipes) images
- (recipe_steps) image
- (ingredients) image
NOTE: A/B Testing