Giter VIP home page Giter VIP logo

prittoruban / mern_blog Goto Github PK

View Code? Open in Web Editor NEW
8.0 1.0 2.0 2.91 MB

I've developed a MERN (MongoDB, Express.js, React.js, Node.js) stack Blog application as part of my recent project. This application showcases my proficiency in full-stack web development

Home Page: https://pritto-blog.onrender.com/

License: MIT License

JavaScript 99.28% HTML 0.32% CSS 0.40%
blog-app blog-app-react mern-blog mern-blog-app mern-project fullstack-blog-app expressjs firebase jwt mongodb

mern_blog's Introduction

MERN Blog App

Welcome to the MERN Blog App! This project is a full-stack blogging application built with the MERN stack (MongoDB, Express.js, React.js, Node.js), enhanced with Tailwind CSS, React Redux, and JWT for secure authentication.

Features

  • Admin Functionality: Create, edit, and delete blog posts.
  • User Functionality: Read blog posts and post comments.
  • Secure Authentication: JWT-based secure authentication for admins and users.
  • Responsive Design: Optimized for all devices using Tailwind CSS.

Getting Started

Follow these instructions to get a copy of the project up and running on your local machine for development and testing purposes.

Prerequisites

  • Node.js
  • npm (Node Package Manager)
  • MongoDB
  • Firebase API Key

Installation

  1. Fork the Repository

    Click the "Fork" button at the top-right corner of this page to create a copy of this repository in your GitHub account.

  2. Clone the Repository

    Open your terminal and clone the forked repository to your local machine:

    git clone https://github.com/PrittoRuban/MERN_Blog.git
  3. Navigate to the Backend Directory

    cd MERN_Blog
  4. Install Backend Dependencies

    npm install
  5. Set Up Backend Environment Variables

    Create a .env file in the root directory and add your MongoDB URL and JWT secret:

    MONGO=your-mongodb-url
    JWT_SECRET=your-jwt-secret
  6. Navigate to the Frontend Directory

    cd Client
  7. Install Frontend Dependencies

    npm install
  8. Set Up Frontend Environment Variables

    Create a .env file in the Client directory and add your Firebase API key:

    VITE_FIREBASE_API_KEY=your-firebase-api-key

Replace your-mongodb-url, your-jwt-secret, your-firebase-api-key with the appropriate values.

Running the Application

  1. Start the Backend Server

    npm run dev
  2. Start the Frontend Server

    Open a new terminal window, navigate to the Client directory, and run:

    npm run dev

The application should now be running locally. Open your browser and navigate to the appropriate localhost URLs to see the frontend and backend in action.


Feel free to contribute to this project by opening issues or submitting pull requests. Your feedback and contributions are highly appreciated!


mern_blog's People

Contributors

prittoruban avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.