Skip to content

Files

Latest commit

 

History

History
26 lines (24 loc) · 1.05 KB

README.md

File metadata and controls

26 lines (24 loc) · 1.05 KB

react-flask

Overview

This is a template of integrating a ML Model using React and Flask. This integration allows a React frontend to send data to the Flask backend, which in turn uses the ML model to perform predictions and returns the results back to the React UI.

Getting Started

To run this app locally on your PC, follow these steps :

  1. Clone this repository to your local machine :
    git clone https://github.com/GouravDutta-01/react-flask.git
    cd react-flask
  2. Make sure you have Python and NodeJs installed on your PC
  3. Install the required dependencies for the Flask API :
    cd backend
    pip install -r requirements.txt
    cd ..
  4. Install the required dependencies for the React app :
    cd frontend
    npm install
    cd ..
  5. Run the Flask API server :
    cd backend
    python app.py
  6. Run the React Web Application :
    cd frontend
    npm start
  7. Open your browser and visit http://localhost:3000 to access the react web application.