Skip to content

atybdot/app-comment

Repository files navigation

Caution

This is a prototype

app-comment-prototype

Getting started 🚀

Pre-requisites

  • set up appwrite
  • In collection settings, enable the document security and add roles screenshot of proper permissions for collections screenshot of proper permissions for collections

Running prototype

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

  1. API End-Point
  2. Project ID
  3. database ID
  4. collection ID

In the project folder create an .env file like this screenshot for proper env variables

Now run

npm run dev --open

screenshots

home page home page of the project

homepage after user login homepage after user login

login login form

sign-up signup from

editing comment editing comment

Todo 📑

  • add OAuth2

Project Goal

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