Express.js MongoDB Blog Site

alt mainpage This is a simple blog site built using Express.js, MongoDB, Mongoose, and EJS. It allows users to create, read, update, and delete blog posts.

Features

User Authentication: Users can sign up and log in to the blog site. Authentication is handled using sessions. Create and Edit Posts: Authenticated users can create new blog posts and edit existing ones. Delete Posts: Users have the ability to delete their own blog posts. Responsive Design: The site is designed to be responsive, providing a seamless experience across devices. Prerequisites

#Express.js

  • Robust routing
  • Focus on high performance
  • Super-high test coverage
  • HTTP helpers (redirection, caching, etc)
  • View system supporting 14+ template engines
  • Content negotiation
  • Executable for generating applications quickly

Installation

Before you begin, ensure you have the following installed on your machine:

Node.js MongoDB download and install Node.js. Installation is done using the npm install command:

$ npm install

PORT=8000 NODE_ENV="development"
MONGODB=mongodb://127.0.0.1:27017/blogAPP
PAGE_SIZE=10 SECRET_KEY=a7db7ashd7ashd7ahghsd7ashd7ashd7hasd7g2367f4e219er
ACCESS_KEY=aspytda87shd7ahsdh7as7dha7dh7sadhas7dha7sdha7sdhas REFRESH_KEY=ijasd8ahsd8jhas8dha8sd8asdhn8ashd8ashd8ahsd*ds9d9f
ACCESS_JWT_EXPIRES_IN=60m REFRESH_JWT_EXPIRES_IN=3d

Usage

Register for a new account or log in if you already have one. Create new blog posts or edit existing ones from the dashboard. Explore the blog and read posts created by other users. Log out when you're done.

Docs & Community