Giter Site home page Giter Site logo

blogging-app's Introduction

BlogHub - A full stack blog application

Overview

This is a MERN (MongoDB, Express, React, Node.js) blog application with front-end built using ReactJS and Vite, back-end built with NodeJS and Express, and data stored in MongoDB using Mongoose. The application also uses TailwindCSS for styling and React-Router for client-side routing. Postman can be used to test the backend API.

Setup Instructions

Prerequisites

Make sure you have the following software installed on your system:

  • Node.js and npm (Node Package Manager)
  • MongoDB

Frontend Setup

  1. Clone the repository:
  2. Navigate to the frontend directory:
  3. Install the dependencies:
  4. Start the development server:
  5. The frontend will be running at http://localhost:3000.

Backend Setup

  1. Navigate to the backend directory:
  2. Install the dependencies:
  3. Set up the MongoDB connection:
    • Make sure your MongoDB server is running.
    • Create a .env file in the backend directory and add your MongoDB connection URL as follows: MONGO_URI=<HERE_GOES_YOUR_MONGODB_URI>
  4. Start the backend server:
  5. The backend will be running at http://localhost:8000.

Testing Backend with Postman

You can use Postman to test the backend API endpoints:

  1. Open Postman and create a new request.
  2. Set the request type (GET, POST, etc.) and URL to http://localhost:8000/api/posts or any other available API endpoint.
  3. Add headers or body if required for the specific request type.
  4. Send the request and inspect the response.

Features

  • User authentication and authorization (ongoing).
  • CRUD operations for blog posts. (ongoing)
  • Infinite scrolling for blog posts. (ongoing)

Feel free to explore the code and customize the application as per your requirements. PR and contributions are much appreciated.

๐Ÿ“Œ P.S. - The project will be migrated to TypeScript soon.

Happy coding! ๐Ÿš€

blogging-app's People

Contributors

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