MyBlog is a full-stack MERN (MongoDB, Express, React, Node.js) web application that allows users to create, edit, and delete blog posts. Users can also view blogs by category and contact the site owners through the contact form. This project uses JWT (JSON Web Tokens) for authentication.
- 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.