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! π’