comment-system
TypeScript icon, indicating that this package has built-in type declarations

1.0.27 • Public • Published

Comment System

A comment system built with Express and GraphQL, designed for easy integration into web applications. This application allows users to create, retrieve, flag, like, and unlike comments with a structured comment hierarchy.

Features

  • Create Comments: Users can create new comments with optional parent comments for nesting.
  • Get Comments: Retrieve comments by parent ID with pagination support.
  • Flag Comments: Flag inappropriate comments which can hide them after multiple flags.
  • Like/Unlike Comments: Users can like or unlike comments to show their support.

Technologies Used

  • Node.js: JavaScript runtime for building the backend.
  • Express: Web framework for building APIs.
  • GraphQL: For flexible querying of comment data.
  • MongoDB: NoSQL database for storing comments.
  • TypeScript: For type-safe development.
  • Mongoose: ODM for MongoDB.
  • ESLint: For maintaining code quality.

Getting Started

Prerequisites

  • Node.js (v14 or higher)
  • MongoDB (local or a cloud instance)

Installation

npm i comment-system

Package Sidebar

Install

npm i comment-system

Weekly Downloads

2

Version

1.0.27

License

ISC

Unpacked Size

112 kB

Total Files

32

Last publish

Collaborators

  • kiriti