commentapi
v2.0.0
Published
Make an easy social media server
Downloads
9
Maintainers
Readme
CommentAPI
The best way to go with a social media app
What is CommentAPI?
CommentAPI is a NodeJS module made for making social media apps. It can make a basic express server, a database, and add comments.
How does it work?
You import the class Comments
with this command:
const c = require('commentapi');
const Comments = c.Comments;
What commands can I use?
There are only four functions for now:
Comments.createServer(
port
)
Use this command to create a basic express server, uses the port given.
Comments.createDatabase(
name
)
Use this command to create a (replpersist) database, with name being the name of the database.
Comments.addComment(
name
,
comment
, [extraInfo])
This adds a new object called name, to your database:
[name] = {
"commentName": [name],
"commentData": [comment],
otherData: {
[extraInfo]
}
}
Comments.getComment(
name
)
It gets the object stored in db.
name