This comment system supports threaded discussions, likes and a simplified login system that uses Twitter API.
It only stores a user id and the avatar's path in a Redis data store which allows a user to be anonymous (provided that the user does not share any personal information on his Twitter account).
By default, the app does not record your IP address.
If you haven't installed Node.js yet, please refer to the official documentation.
If you haven't installed Redis yet, please refer to the official documentation.
Once Redis is installed, execute the command redis-cli
in the command line.
Once Node.js and Redis are installed, clone the repo:
git clone https://github.com/http-teapot/comment
Duplicate config.dist.js
, name the new file config.js
and fill out the settings as much as you can.
Most settings will work fine as-is just make sure you specify a domain (can be localhost or 127.0.0.1).
If you didn't set a new app on Twitter (so users can log in), head to the Twitter's app website, create a new app and check the API Keys
tab to get the different keys.
Once it's all complete, run:
npm start
If you want to run your app on port 80, you need to execute the command above as root.
sudo npm start
Once you installed the app, run the following command:
npm test
Please feel free to contribute to this repository. This software was originally produced as a proof of concept and can definitely be improved.
For more information, refer to the LICENSE file in this repository.