- server:
- GET comments
- POST comments
- LIST URIs
Manage comments
- database
Any database support key value storage and users can query the keys is capable.
-
PUT key & value
-
GET key & value
-
GET all keys
-
DEL key & value
-
notification
-
How to notify users when there is a reply
-
How to notify admin when there is a reply
- Create bucket: https://console.cloud.tencent.com/cos5/bucket (not possible 因为 bucket name 会带上用户 ID)
[{
"id": "",
"parentId": "",
"content": "",
"author": "",
"email": "",
"link": "",
"upvotes": ""
}]
- render comment box
- get comments from API
- render comments
https://codepen.io/scottcn/pen/WNpRoZv comment list styles