-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTodoList.txt
236 lines (169 loc) · 5.13 KB
/
TodoList.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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
La Vie Todo List
- Installing packages ✓ DONE
- Initialize express app ✓ DONE
- Adding folder structure ✓ DONE
- Connect to Mongo DB ✓ DONE
________________
// User data
- Users Schema: {
✓- First Name (required)
✓- Last Name (required)
✓- Email (required)
✓- Password (required) [Capital Letter Small Letter Special character and a number]
✓- Phone number
✓- Date of birth
✓- Gender
✓- Profile picture
✓- Addresses
- Qualification: ref: "myQualification",
✓- role: ref: "appRoles", [admin , user, partner]
✓- Book marks [Urls....]
✓- Level: [beginner-advanced-professional]
}
// Actions on User Model
> Route added
> Method Implemented
✓- Sign up (Create account) throw regular form
- Sign up (Create account) throw or any third party such as (google - facebook)
> Route added
> Methods Implemented
✓- Login (Read data and validate and create token)
> Route added
- Forgot password (Will send verfication code to his email to allow him to update the password)
> Method Implemented
> Route added
✓- Logout (will update user data and remove tokens array);
> Route added
> Method Implemented
✓- Get single to get User data to render it into his Personal profile
> Route added
> Method Implemented
✓- Edit my profile action
> Route added
> Method Implemented
✓- Delete account action
________________________________________________________________________________________________________________
user must be loggedin to be a partner
admin should aprrofe pratnership request
Partner Schema ✓ DONE
{
approved: bolean defult :false
Store name: string required
No. of Branches: number required
Store Address
Email address:
Mobile number:
Website:
Social media:
Contact role: [Owner, Co-owner, Manager, Employee]
}
// Actions
// Convert to partner <<<<<<< I have no i dea how it will function
// Return to regular user <<<<<< I have no i dea how it will function
// Create account as partner
// Update account data
// Delete account
________________________________________________________________________________________________________________
Rewards Schema ✓ DONE
{
- Rewards [
{
rewordName: String
rewardScore: number
}
]
- TotalRewords: totlNumber of rewords Scoor;
}
________________________________________________________________________________________________________________
product Schema{
- name
- description
- image
- images[]
- brand
- price
- category: ref Category
- countInStock
- Review: ref products reviews
}
// Actions
- Create new product
- Update product
- get products
- remove Product
________________________________________________________________________________________________________________
products review schema {
title: string
conent: text
reating: number from 1 to 10
product: ref to the proudct by id
user: ref user id
}
// Actions
create review
update reivew
get reviews for a product
delete review
________________________________________________________________________________________________________________
app Roles Schema:{type: String, unique, required} ✓ DONE
// Actions
Create Role ✓ DONE
updte Role ✓ DONE
get Role ✓ DONE
get Roles ✓ DONE
delete Role ✓ DONE
________________________________________________________________________________________________________________
routes Schema : { ✓ DONE
- routeName:String, unique, required
- roles: ref: [roels id's]
}
// Actions
Create route ✓ DONE
updte route ✓ DONE
get route ✓ DONE
get routes ✓ DONE
delete route ✓ DONE
________________________________________________________________________________________________________________
Blogs Schema
{
title:
content:
publishDate:
rete:[{
starsNumber:
userId: ref:User
}]
AvergeRate:avergeValue of useres rate array
Comments: [
{
user: userId: ref:User
content:
}
]
}
// Actions
// Insert Rate value
// get reates
// delete rate
// add Comments
// Edit comment or update comment
// delete Comments
________________________________________________________________________________________________________________
Quizzes Schema:
{
question:
answers: [array]
correct answer: index value of correct answer in the array of questions
question-level: [beginner-advanced-professional]
rewardScore: number
}
// Actions
// insert question
// update question
// get questions based on the user level
// delete question
________________________________________________________________________________________________________________
// Learn more & contact us available route for all users
________________________________________________________________________________________________________________
- Implementing authentication middleware ✓ DONE
- Implementing authorization middleware ✓ DONE