MyBlog is a full-stack MERN web application that allows users to create, edit, and delete blog posts. It features blog categorization for easy navigation and a contact form for user inquiries. The application uses JWT (JSON Web Tokens) for secure user authentication and session management. Built with MongoDB, Express, React, and Node.js, MyBlog offers a robust and dynamic blogging platform, integrating modern technologies for a streamlined and secure user experience.
- User authentication (signup, login, logout)
- Create, edit, and delete blog posts
- View blogs by category
- Contact us
- Frontend: React, Bootstrap
- Backend: Node.js, Express
- Database: MongoDB
- Authentication: JSON Web Tokens (JWT)
-
Clone the repository:
git clone https://github.com/rajanmandanka07/My-Blog.git
-
Install dependencies:
cd myblog npm install
-
Create a
.env
file in the root directory and add the following environment variables:PORT=3000 MONGODB_URI=your_mongodb_uri JWT_SECRET=your_jwt_secret
-
Start the development server:
npm start
-
Visit
http://localhost:3000
in your browser to view the app.
- Register a new account or login with existing credentials.
- Create a new blog post by clicking on the "New Post" button.
- Edit or delete existing blog posts.
- View blogs by category using the navigation menu.
- Use the contact detail to contact to the site owners.
Contributions are welcome! Please fork the repository and submit a pull request.