Introduction
OVER is a TypeScript and Node.js plug & play comments micro-service that allows you create a comments, get, filter, rating, and paginate the incoming data from the API's endpoint .. and also nested replies using one to many self-relationship.
Built using pure express.js application with MySQL without using an ORM.
Project Structure
Database
Columns ofcomments
table
name | type | null | default | Primary Key |
id | VARCHAR(255) | no | none | PK |
commentable_key | VARCHAR(255) | no | none | |
commentable_id | VARCHAR(255) | no | none | |
name | VARCHAR(255) | no | none | |
VARCHAR(255) | no | none | ||
body | VARCHAR(255) | no | none | |
rating | int(11) | no | 0 | |
reply_id | VARCHAR(255) | yes | NULL | |
created_at | TIMESTAMP | no | CURRENT_TIMESTAMP |
Last updated