Skip to content

prasanth7890/Blog-App

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

MERN Stack Blog App

This is a MERN (MongoDB, Express.js, React, Node.js) stack-based blog application that allows users to create, read, update, and delete blog posts. The project is divided into two main folders - "client" for the frontend and "api" for the backend.

Technologies Used

Frontend (Client):

  • React: A JavaScript library for building user interfaces.
  • React Router: For handling client-side routing.

Backend (API):

  • Express.js: A web application framework for Node.js.
  • MongoDB: A NoSQL database used to store blog post data.
  • Mongoose: An Object Data Modeling (ODM) library for MongoDB.
  • bcrypt: For password hashing and authentication.
  • JSON Web Tokens (JWT): For user authentication and authorization.
  • Multer: A middleware for handling file uploads.

Getting Started

Prerequisites

Installation

  1. Clone this repository:

    git clone https://github.com/prasanth7890/Blog-App.git
    
  2. Install dependencies for both the client and API:

    cd client
    npm install
    cd ../api
    npm install
    
  3. Create a .env file in the "api" folder and set the following environment variables:

    DB_URL=your_mongodb_connection_string
    SECRET=your_secret_key
    
    
  4. Start the server (from the "api" folder) and the client application (from the "client" folder) separately:

    Start the API server

    nodemon server.js

    Start the client

    npm start

Usage

Once the server and client are running, you can access the application by visiting http://localhost:3000 in your web browser.

The app allows users to:

  • Users can login and Register

image

  • Create new blog posts

image

  • View existing blog posts

image

  • Edit and update blog posts

image

About

A Blog Application built with MERN Tech Stack

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published