app-comment
v0.0.211-alpha
Published
seamlessly integrate a comment section into your React or Astro project
Downloads
457
Maintainers
Readme
[!CAUTION]
This is a prototype
app-comment
Getting started 🚀
Pre-requisites
In collection settings, enable the document security and add roles
Obtain the following from appwrite
- API End-Point
- Project ID
- database ID
- collection ID
In your project create an .env file like this
Installation
npm i app-comment
Now you can insert CommentSection Component anywhere in your project
Usage
[!IMPORTANT]
you need to add postId in your files metadata and extract it
// layout.jsx
import CommentSection from "app-comment"
//... your code
<CommentSection postId={postId}>
props
postId
you first need to add postid to all your files on which you are rendering commentSection
This is required and will list comments based on this prop If it is mismatched then wrong comments are rendered
Todo 📑
- [ ] implement auth2 for google and github
- [ ] make it more customizable
screenshots
home page
homepage after user login
login
sign-up
editing comment