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! 🚀
-
✨ 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.
Before you start, ensure you have:
-
📡 Node.js and npm installed.
-
📦 MongoDB database set up.
-
🔑 Necessary environment variables configured.
Getting started is easy:
-
📥 Clone the repository:
git clone https://github.com/ishansingh1010/Blog-Application
-
📂 Change to the project directory:
cd Blog-Application
-
📦 Install dependencies:
npm install
Follow these steps:
-
📝 Set up environment variables in a
.env
file. -
🚀 Start the application:
npm start
-
🌐 Access the application at
http://localhost:8000
.
Explore the API 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.
/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.
/createComment
: POST route to create a new comment./updateComment/:id
: PATCH route to update a comment./deleteComment/:id
: DELETE route to delete a comment.
We welcome your contributions to make this application better! Here's how you can get involved:
-
🍴 Fork the repository on GitHub.
-
🧰 Clone your forked repository to your local machine.
-
🌟 Create a new branch for your feature or bug fix.
-
📦 Make your changes and commit them with clear and concise commit messages.
-
🚀 Push your changes to your forked repository.
-
🔄 Create a pull request to merge your changes into the main repository.
Join us in shaping the future of blogging with the Blog Application! 📢