You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+66-1Lines changed: 66 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,6 +6,20 @@ Project of animes and mangas website, utilizing the AniList, Consumet and Aniwat
6
6
7
7
<palign="center">You can access this website on <ahref='https://aniproject-dev.vercel.app/'>Vercel</a> or <ahref='https://aniproject-website.onrender.com'>Render (really slow)</a>.</p>
-[x]`Search`: Get a list of all animes and mangas you want using filters.
@@ -95,7 +109,57 @@ npm run dev
95
109
96
110
5. That's it! It should be running.
97
111
98
-
## :computer: Preview/Screenshots
112
+
## :open_file_folder: How Firebase is Organized
113
+
114
+
### Authentication
115
+
116
+
With Firebase Authentication, theres 4 methods of Login/Signup:
117
+
118
+
- Email
119
+
- Google
120
+
- GitHub
121
+
- Anonymous
122
+
123
+
It is used to store on User Document things like:
124
+
125
+
- User Profile Photo
126
+
- Username
127
+
- Preferences (media source, adult content, subtitles and more)
128
+
- Comments
129
+
- Notifications
130
+
- Bookmarked Medias
131
+
- Currently Watching Medias
132
+
- Episodes Watched/Chapters Read
133
+
134
+
### Collections and Documents
135
+
136
+
With Firebase Database, we have 3 Collections:
137
+
138
+
#### Users
139
+
140
+
Stores only Users Documents after a successfull signup.
141
+
142
+
#### Comments
143
+
144
+
Stores comments made on episodes or on its main page.
145
+
146
+
Its separated based on Anilist API Media IDs Documents, and after that, a Collection that holds all comments to this media and other related to a episode where that comment was made.
147
+
148
+
It strongly depends on Users Collection, due to each comment needs its user (owner). Each comment has a referer to its owner and stores its interactions, with Likes and Dislikes.
149
+
150
+
When a Comment is made, it saves sort of a log on User Document, with infos like interactions with other comment or written on a episode.
151
+
152
+
#### Notifications
153
+
154
+
The Notifications Collections stores a document for each Media ID related to Anilist API every time a user assigned himself to be notified about a new episode release.
155
+
156
+
Each document has a Collection that holds every user assigned to receive a notification.
157
+
158
+
In this document, has info of all episodes already notified to any user and the next to be notified, cover art, if is complete, status and last update date.
159
+
160
+
- User Document Relation: After a successfull notification is deliveried to user, it stores the last episode info on User Document, so it can be notified again and the next one is released.
0 commit comments