Skip to content

Sehaj-kahlon/React-flask-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 

Repository files navigation

React + Flask template

In this template flask is connected as a backend service for a react app

How to use the template

  1. clone the project

    git clone https://github.com/Sehaj-kahlon/React-flask-template.git
  2. navigate to the react app

    cd client
  3. install dependencies

    npm i
  4. run the app

    npm run start

open other terminal

  1. navigate to the server folder

    cd flask-server
  2. create virtual environment - for windows

    python -m venv venv
  3. open virtual environment - windows

    .\venv\Scripts\activate
    • mac
    source venv/bin/activate
  4. install dependencies

    pip install -r requirements.txt
  5. run the file before running the file mae sure u are inside the virtual environment

    python localhost.py

try using gpt if getting error while running the localhost.py 😝

how to connect React app from flask backend

refre video: https://youtu.be/7LNl2JlZKHA?feature=shared

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published