Welcome to the Blogging Web Application repository! This application allows users to create, read, update, and delete blogs, comment on posts, like posts, view user profiles, and share blogs on social media.
Check out the live version of the application here.
- User Authentication: Register and login securely.
- Blog Management: Create, read, update, and delete blog posts.
- User Profiles: View profiles of users including their blogs.
- Social Sharing: Share blogs on social media platforms.
- Frontend: HTML, CSS, JavaScript, React.js
- Backend: Node.js, Express.js
- Database: MongoDB
- Authentication: JWT (JSON Web Tokens)
- Styling: Tailwind CSS, Bootstrap
To run this application locally, follow these steps:
-
Clone the repository
git clone https://github.com/Yash1Hingu/yashblog.git cd yashblog
-
Install the dependencies
npm install
-
Create a
.env
file in the root directory and add the following environment variablesMONGO_URI=your_mongodb_uri JWT_SECRET=your_jwt_secret
-
Run the application
npm start
The application will be available at http://localhost:3000
.
/
- Homepage displaying all blog posts./login
- Login page for existing users./register
- Registration page for new users.
/home
- User home after successful login./create
- Form to create a new blog post./post/:id
- View a single blog post./user/:id
- View user profile by ID./edit/:id
- Edit an existing blog post.
- POST /register
- Register a new user with username, email, password, and profile image.
- POST /login
- Login with username and password.
- GET /profile
- Retrieve user profile information.
- POST /logout
- Logout the user.
- POST /post
- Create a new blog post with title, summary, content, and cover image.
- GET /post
- Get all blog posts.
- GET /userposts/:id
- Get blog posts by a specific user.
- GET /post/:id
- Get a single blog post by ID.
- PUT /post
- Update a blog post.
- DELETE /delete/:id
- Delete a blog post by ID.
- GET /user/:id
- Get user profile by ID.
- Register a new account or login with an existing account.
- Create a new blog post by clicking on the "Create Blog" button.
- View blog posts on the homepage and click on a post to read it in detail.
- Add comments and like posts.
- Visit user profiles to see their posts and information.
- Share interesting blog posts on your social media accounts.
If you have any questions or feedback, feel free to contact me at yash23hingu@gmail.com.
Thank you for visiting the Blogging Web Application repository!