Caution
This is a prototype
- set up appwrite
- In collection settings, enable the document security and add roles
clone this repo
git clone --branch development https://github.com/atybdot/app-comment.git
Install all the dependencies
npm i
Obtain the following from appwrite
- API End-Point
- Project ID
- database ID
- collection ID
In the project folder create an .env file like this
Now run
npm run dev --open
- add OAuth2
The eventual goal of this project is to add comment section in your blogs / project with as little hassle as possible using appwrite.
such that you just install this as
npm i app-comment
then in your layout project
// layout.jsx
import CommentSection from "app-comment"
.... your code
<CommentSection postId={slug-of-your-post}>
This pkg is available on npm but it has error when importing
you can check the main branch for npm pkg code
or check app-comment on npm