Skip to content
This repository has been archived by the owner on Oct 27, 2022. It is now read-only.

Latest commit

 

History

History
57 lines (37 loc) · 884 Bytes

README.draft.md

File metadata and controls

57 lines (37 loc) · 884 Bytes

Design

  1. server:

API

  1. GET comments
  2. POST comments
  3. LIST URIs

Dashboard

Manage comments

  1. database

Any database support key value storage and users can query the keys is capable.

  1. PUT key & value

  2. GET key & value

  3. GET all keys

  4. DEL key & value

  5. notification

  6. How to notify users when there is a reply

  7. How to notify admin when there is a reply

How to deploy to tencent cloud

  1. Create bucket: https://console.cloud.tencent.com/cos5/bucket (not possible 因为 bucket name 会带上用户 ID)

Comment structure

Comments for a URI

[{
  "id": "",
  "parentId": "",
  "content": "",
  "author": "",
  "email": "",
  "link": "",
  "upvotes": ""
}]

frontend script

  1. render comment box
  2. get comments from API
  3. render comments

https://codepen.io/scottcn/pen/WNpRoZv comment list styles