Commenting system like Hacker News using socket
it will install and configure the following:
- Mongo
- Node
- EJS
- Express
To install Mongo DB use https://docs.mongodb.com/manual/administration/install-community/
Start your Mongo server , Run below command to start the Mongo server:
sudo service mongod start
use commenting_system
db.createCollection("posts")
db.createCollection("comments")
db.createCollection("users")
Clone commenting_system with HTTP or download the project:
$ git clone https://github.com/RBhalala/commenting_system.git
- Using npm
$ npm install
$ node app.js