-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathNotes.txt
85 lines (20 loc) · 1.62 KB
/
Notes.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
Nodemon use because of hot reloding concept .
If file save so automatically restart the server ,
so ye pta bhi nhi lgta jo code likha hai wo sb processs hokr code me show hone lga .
----------------------------------------------------------------------------------------------------------------------------------------
How upload images or videos
first upload images through multer , then these imagaes we will store into our local files
(where anything i want to upload so these are saved on this files)
then while uploading any images on cloudinary , this will fetch from our local images files
This is because , i give one more change to upload .
This is 2 step Process
----------------------------------------------------------------------------------------------------------------------------------------
Middleware has 4 parameters -> (err , req , res , next)
----------------------------------------------------------------------------------------------------------------------------------------
mongoose-aggregate-paginate-v2 -> This library allow to write mongodb aggration pipeline
----------------------------------------------------------------------------------------------------------------------------------------
JWT Token is something like Bearer Token , means jo usko bear krta hai , mai usko ek authenticate or sahi person maan lunga
----------------------------------------------------------------------------------------------------------------------------------------
URL -> Uniform Resouce Locator
URI -> Uniform Resouce Identifier
URN -> Uniform Resouce Name