Blog-Api (Backend)

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

Features

  • 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

Build with

My Skills

How to compile this project

  • 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

Screenshot

Loginpage

Secrrenshot of a login page

Page shows all posts

screen of a page shows all posts

Page to create a new post

screenshot of a page use to create a new post

Page shows a detail of post

screenshot of a page shows a detail of a post

Page shows a list of comments for the post

screenshot shows a list of comments for the post

page shows a comments filtered by username

screenshot shows a list of comments filtered by username