Giter Club home page Giter Club logo

shubham-guptaji / mern-blog-backend Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 232 KB

Backend code for a feature-rich blog website with JWT authentication, post and comment management, user follow/unfollow, admin blocking, and file handling. Built with Express JS and MongoDB

Home Page: https://alcoblog.alcodemy.in

License: MIT License

JavaScript 100.00%
blog-website-backend jwt-authentication user-management post-and-comment-management admin-privileges database-integration file-handling node-backend user-management-api

mern-blog-backend's Introduction

Blog Website Backend

Introduction

This repository contains the backend code for a full-fledged blog website. It provides various features including JWT authentication, CRUD operations for posts and comments, user management functionalities like following/unfollowing authors, admin privileges to block/unblock users, and file management for uploading and deleting files.

Features

  • JWT Authentication: Users can authenticate using JSON Web Tokens for secure access to the website.
  • Post Management:
    • Create, read, update, and delete posts.
    • Like posts to show appreciation.
  • Comment Management:
    • Create, read, update, and delete comments on posts.
  • User Management:
    • Follow/unfollow authors to customize the feed.
    • Admin privileges to block/unblock users.
  • File Management:
    • Upload files such as images for posts.
    • Delete uploaded files when necessary.

Technologies Used

  • Backend Framework: Express JS
  • Database: MongoDB
  • Authentication: JSON Web Tokens (JWT)
  • Other Technologies: Cloudinary, Mongoose, Bcrypt, Express-Rate-Limit, Multer

Setup Instructions

  1. Clone the Repository:
  git clone https://github.com/Shubham-Guptaji/MERN-Blog-Backend.git
  1. Install Dependencies:
  cd MERN-Blog-Backend
  npm install
  1. Environment Variables:
  • Create a .env file based on the .env.example file.
  • Populate the environment variables with appropriate values.
  1. Database Setup:
  • Set up your database and update the database configuration in the .env file.
  1. Run the Server:
  npm start
  1. Testing:
  • Use tools like Postman or write unit tests to ensure the APIs work as expected.

Api Documentation

Ownership

  • Shubham Gupta

License

MIT License

mern-blog-backend's People

Contributors

shubham-guptaji avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.