Welcome to the Blog Application! This application is built using the MERN stack (MongoDB, Express.js, React.js, Node.js), GraphQL, and Material UI. It provides functionalities for user authentication, creating, adding, updating, and deleting blogs, as well as adding and deleting comments on blogs.
- User Authentication and Authorization System
- GraphQL for API efficiency
- Storing User's blogs and comments in MongoDB
- Protecting User Routes
- Modern React App with Google fonts
- Beautiful UI with Material UI Library
- Complete Responsive Design
- Storing User Sessions in Local Storage
You can access the hosted application at https://dev-blog-yy15.onrender.com
- Initial loading could take up to 1 minute as we have hosted it on a free hosting service.
- MongoDB: NoSQL database used for storing blog data.
- Express.js: Backend framework for handling server-side logic and API requests.
- React.js: Frontend library for building user interfaces.
- Node.js: JavaScript runtime for server-side development.
- GraphQL: Query language for interacting with the backend API efficiently.
- Material UI: React component library for designing visually appealing user interfaces.
git clone https://github.com/darshakjani8101/Blog_Application.git# Navigate to the server directory
cd server
npm install
# Navigate to the client directory
cd ../client
npm installCreate a .env file in the server directory and add the following variables:
MONGODB_URL=your_mongodb_uri
PORT=5000Modify below mentioned file in client directory and setup the following variable:
# Open client/src/index.tsx file and setup below variable
uri: "http://localhost:5000/graphql";# Start the server
cd ../server
npm run dev
# Start the client
cd ../client
npm startOpen your web browser and visit http://localhost:3000 to access the MERN stack blog application.
