This is a full-stack blog application built using the MERN stack (MongoDB, Express, React, Node.js). It allows users to create, manage, and interact with blog posts while providing robust user authentication and authorization.
User Authentication & Authorization:
User Management:
Blog Management:
Comment System:
File Handling:
Email Services:
Admin Functions:
Responsive UI:
Weekly Improvements:
Make sure you have the following installed on your machine:
-Installation: To get a local copy up and running, follow these simple steps:
Clone the repo:
git clone https://github.com/mohdsaadshaikh/blog-app-mern.git
Navigate to the project directories: make sure open two terminals
cd client
cd server
Install dependencies:
npm install
Set up environment variables:
.env
file in both the /client
and /server
directories and add these with the variables as shown below.Client
VITE_SERVER_URL=your_server_url
Server
PORT=your_port_value
NODE_ENV=production
MONGODB_URI=your-mongodb-uri
JWT_SECRET=your-jwt-secret
JWT_EXPIRES_IN=30d
JWT_COOKIE_EXPIRES_IN=90
[email protected]
BREVO_HOST=your-smtp-host
BREVO_PORT=your-smtp-port
BREVO_USER=your-smtp-user
BREVO_PASS=your-smtp-password
CLOUDINARY_NAME=your-cloudinary-name
CLOUDINARY_APIKEY=your-cloudinary-apikey
CLOUDINARY_SECRET=your-cloudinary-secret
Run the application:
Client
npm run dev
Server
npm start
Usage
Contributing
Contributions are what make the open-source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.