A Node.js-based commenting system that allows users to submit comments asynchronously using AJAX. Comments are stored and retrieved from MongoDB.
- Submit comments without page reload using AJAX
- Store and retrieve comments from MongoDB
Node.js
– Backend frameworkExpress.js
– Web framework for Node.jsEJS
– Templating engine for dynamic contentAJAX
– For asynchronous data submissionMongoDB
– NoSQL databaseNodemon
– Automatically restarts server upon changes
Create a MongoDB database named commenting-system
:
use commenting-system
Clone the repository and install the dependencies:
$ git clone https://github.com/dnmore/ajax-comment-system.git
$ npm install
To start the server, use:
$ npm start
The server will be running at http://localhost:3000/
This project is licensed under the MIT License.