Skip to content
Basic open-source implementation of the server for JustComments
JavaScript
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore Initial version Jul 22, 2019
LICENSE Initial commit Jul 22, 2019
README.md Update readme Jul 26, 2019
config.js Initial version Jul 22, 2019
markdown.js Initial version Jul 22, 2019
package-lock.json Initial version Jul 22, 2019
package.json Initial version Jul 22, 2019
server.js Initial version Jul 22, 2019
storage.js Use hash to get a filename Jul 22, 2019
validation.js Initial version Jul 22, 2019

README.md

JustComments Server

JustComments demo

Basic open-source implementation of a server for JustComments

The server is implemented in NodeJS. Required version is 8+;

Features

  • basic commenting
  • single process
  • file storage

Not-included features

  • reactions
  • nested responses
  • sorting
  • social login
  • email notifications
  • push notifications
  • reCaptcha
  • higly-available & distributed storage

To have these features, please see the paid hosted version: JustComments

Server Setup

  • Clone the repository and run npm install.
  • Run node server.js

You should get a message JustComments listening on port 3434!. You can change the port in config.js.

Frontend Setup

Frontend Build

  • Define URLs where you will host the frontend and backend in Webpack config or via CLI.
  • Run npm run build.
  • Copy files from the dist to your server.

Recommended config for the frontend

<div
  class="just-comments"
  data-locale="en"
  data-disablesociallogin="true"
  data-disablepushnotifications="true"
  data-disableemailnotifications="true"
  data-disablereactions="true"
></div>
<script src="https://your-server/jc/w2.js"></script>
You can’t perform that action at this time.