Welcome to the darkside of the project. This backend code follows a MVC pattern which is
- Model -
mongodb
is used to make schemas and models. - View -
ejs
is used to render the views. - Controller -
express
is used as a controller.
I have used the module called trix for rich text editor which is based on WYSIWYG
editor.
live link to blog-backend
live link to blog-frontend
- User can make a post using rich text editor.
- User can edit the posts
- User can delete the posts
- User can view the comments for the posts
- User can delete the comments, which actually update the comment as
[removed my admin]
and saves the deleted comment into other collection. - User can filter comments based on commenters
- Download or clone this repo into your local machine
cd
into the project's folder- Type
npm install
to install the necessary modules - Type
npm run serverstart
to run compile and run the project