/blog-posts

Primary LanguageJavaScript

blog-posts

A simple web application built with Flask and React to perform CRUD operations on blog posts.

Prerequisites

  • Python 3.8+
  • pip (Python package installer)
  • Node.js and npm (Node package manager)

Set up Flask backend

  1. Navigate to the backend directory:

    cd backend
    
  2. Install the required Python packages:

    pip install -r requirements.txt
    
  3. Run the Flask application:

    python main.py
    

The backend server is started on http://localhost:5000/.

Set up React frontend

  1. Navigate to the frontend directory:

     cd frontend
    
  2. Install the required npm packages:

    npm install
    
  3. Start the React application:

    npm run dev
    

Open http://localhost:5173/ to view it in the browser