In this template flask is connected as a backend service for a react app
-
clone the project
git clone https://github.com/Sehaj-kahlon/React-flask-template.git
-
navigate to the react app
cd client
-
install dependencies
npm i
-
run the app
npm run start
-
navigate to the server folder
cd flask-server
-
create virtual environment - for windows
python -m venv venv
-
open virtual environment - windows
.\venv\Scripts\activate
- mac
source venv/bin/activate
-
install dependencies
pip install -r requirements.txt
-
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 😝
refre video: https://youtu.be/7LNl2JlZKHA?feature=shared