Skip to content

darshakjani8101/Blog_Application

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 

Repository files navigation


Project Banner

MERN Stack Blog Application

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.

Features

  • 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

Hosted Application

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.

Technologies Used

  • 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.

Local Setup

1. Clone the repository:

git clone https://github.com/darshakjani8101/Blog_Application.git

2. Install dependencies:

# Navigate to the server directory
cd server
npm install

# Navigate to the client directory
cd ../client
npm install

3. Set up environment variables:

Create a .env file in the server directory and add the following variables:

MONGODB_URL=your_mongodb_uri
PORT=5000

4. Set up local server URL in client:

Modify 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";

5. Run the application:

# Start the server
cd ../server
npm run dev

# Start the client
cd ../client
npm start

6. Access the application:

Open your web browser and visit http://localhost:3000 to access the MERN stack blog application.

Contributors

Darshak Jani

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors