Skip to content

Welcome to the Blog Application! This platform lets you share and discover amazing blogs built with Express.js and MongoDB. Express yourself, connect with others, and find inspiration! πŸš€

Notifications You must be signed in to change notification settings

AkshandraSingh/Blog-Application

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

7 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Blog Application πŸ“

Welcome to the Blog Application! This platform lets you share and discover amazing blogs built with Express.js and MongoDB. Express yourself, connect with others, and find inspiration! πŸš€

Table of Contents πŸ“š

Features 🌈

  • ✨ User Authentication: Secure user registration and authentication.

  • πŸ“ Create, Edit, and Delete Blogs: Share your thoughts, stories, and ideas effortlessly.

  • πŸ’¬ Comment on Blogs: Engage in discussions and connect with fellow bloggers.

  • ❀️ Like Blogs: Show appreciation with a simple click.

  • πŸ” Search for Blogs: Find blogs using powerful keyword search.

  • πŸ“ˆ View Trending Blogs: Stay updated with popular blogs.

  • πŸ—ƒοΈ View All Blogs and User-Specific Blogs: Explore diverse content.

Prerequisites πŸ› οΈ

Before you start, ensure you have:

  • πŸ“‘ Node.js and npm installed.

  • πŸ“¦ MongoDB database set up.

  • πŸ”‘ Necessary environment variables configured.

Installation πŸš€

Getting started is easy:

  1. πŸ“₯ Clone the repository:

    git clone https://github.com/ishansingh1010/Blog-Application
  2. πŸ“‚ Change to the project directory:

    cd Blog-Application
  3. πŸ“¦ Install dependencies:

    npm install

Usage 🚦

Follow these steps:

  1. πŸ“ Set up environment variables in a .env file.

  2. πŸš€ Start the application:

    npm start
  3. 🌐 Access the application at http://localhost:8000.

API Routes πŸš€

Explore the API routes:

User Routes πŸ‘€

  • /createUser: POST route for user registration.
  • /loginUser: POST route for user login.
  • /sendMail: POST route to send password reset emails.
  • /resetPassword/:id/:token: POST route to reset passwords.
  • /editProfile/:id: PATCH route for editing user profiles.
  • /setNewPassword/:id: PATCH route to set new passwords.

Blog Routes πŸ“š

  • /createBlog/:id: POST route to create a new blog.
  • /updateBlog/:id: PATCH route to update a blog.
  • /deleteBlog/:id: DELETE route to delete a blog.
  • /searchBlog/:letter: GET route to search for blogs by a keyword.
  • /detailBlog/:id: GET route to view detailed information about a blog.
  • /trendingBlogs: GET route to fetch trending blogs.
  • /allBlogs: GET route to view all blogs.
  • /likeBlog: GET route to like a blog.
  • /myBlogs/:userId: GET route to view blogs specific to a user.

Comment Routes πŸ’¬

  • /createComment: POST route to create a new comment.
  • /updateComment/:id: PATCH route to update a comment.
  • /deleteComment/:id: DELETE route to delete a comment.

Contributing 🀝

We welcome your contributions to make this application better! Here's how you can get involved:

  1. 🍴 Fork the repository on GitHub.

  2. 🧰 Clone your forked repository to your local machine.

  3. 🌟 Create a new branch for your feature or bug fix.

  4. πŸ“¦ Make your changes and commit them with clear and concise commit messages.

  5. πŸš€ Push your changes to your forked repository.

  6. πŸ”„ Create a pull request to merge your changes into the main repository.

Join us in shaping the future of blogging with the Blog Application! πŸ“’

About

Welcome to the Blog Application! This platform lets you share and discover amazing blogs built with Express.js and MongoDB. Express yourself, connect with others, and find inspiration! πŸš€

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published