Giter VIP home page Giter VIP logo

akshandrasingh / blog-application Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 0.0 136 KB

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! ๐Ÿš€

JavaScript 100.00%
bycrypt-password jwt-token node-js nodemailer nodemon express joi-password-complexity joi-validation logger mongodb-database mongoose routing services validation

blog-application's Introduction

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! ๐Ÿ“ข

blog-application's People

Contributors

akshandrasingh avatar

Stargazers

 avatar  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.