Skip to content

Basic open-source implementation of the server for JustComments

License

Notifications You must be signed in to change notification settings

JustComments/jc-server

Repository files navigation

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>

About

Basic open-source implementation of the server for JustComments

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published