Git Product home page Git Product logo

mern-blog's Introduction

MERN Blog-app

Introduction

Welcome to the MERN Blog Project repository! This project serves as a starting point for developing web applications using the MERN stack, which includes MongoDB, Express.js, React.js, and Node.js.

Prerequisites

Before you begin, ensure you have met the following requirements:

  • Node.js installed on your local machine.
  • MongoDB installed locally or access to a MongoDB instance (local or cloud-based).

Getting Started

To get started with this project, follow these steps:

  1. Clone the repository to your local machine: git clone (https://github.com/aLamba570/mern-blog.git)

  2. Navigate to the project directory: cd mern-blog

  3. Install dependencies for both the server and client: npm install cd backend npm install cd .. cd frontend npm install

Add Start scripts

  1. Set up your environment variables:
  • Create a .env file in the root directory based on the provided .env.example.
  • Update the environment variables with your MongoDB connection URI and any other necessary configurations.
  1. Start the development server: npm run dev

  2. Open your browser and navigate to http://localhost:3000 to view the React frontend.

Project Structure

The project structure is organized as follows:

  • frontend/: Contains the React.js frontend code.
  • backend/: Contains the Node.js and Express.js backend code.
  • public/: Contains static files for the frontend.
  • models/: Contains database models (if applicable).
  • routes/: Contains Express.js routes.
  • controllers/: Contains controllers for handling business logic.
  • middlewares/: Contains custom middleware functions (if applicable).
  • config/: Contains configuration files (e.g., database configuration, environment variables).

Contributing

Contributions are welcome! If you find any issues or have suggestions for improvements, please feel free to open an issue or create a pull request.

License

This project is licensed under the MIT License.

mern-blog's People

Watchers

Ankush Lamba 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.