Viima / jquery-comments

The Javascript library of choice for implementing commenting in your web app
http://viima.github.io/jquery-comments/
MIT License
294 stars 118 forks source link

Server Side Logic #120

Closed luigi37 closed 7 years ago

luigi37 commented 7 years ago

Hi. Facing some troubles in understanding the logic....

I understood that, having already an user table in my mysql db, I need to create a "comments" table which can replicate the "Fields" in http://viima.github.io/jquery-comments/#link-4

I understand that the plugin will handle all the retrieved comments as long as they are passed as jsonCOMMENT item.

I can't understand what are the endpoints here and what is the meaning of "customers" in the example...

Sorry, might be obvious but I'm struggling here...

jessenieminen commented 7 years ago

Hi @luigi37! Thanks for the message.

The "customers" part in the documentation refers to the fact that the product where we use this library is multitenant SaaS, meaning that we serve multiple customers with each having their own data. So any customer can basically only see their own data. If you don't have this challenge, you can ignore everything "customer related" from that documentation.

Regarding the endpoints:

Hope this helps! I'll, however, close this issue as backend related things are not in the scope of this project.

gaston4r commented 6 years ago

We need more information about the expected json response from the server, its the same json for post a comment, upload a image, etc?