- Navigate to the project directory:
cd react-python-tutorial
- Navigate to the backend directory:
cd backend
- Create a virtual environment:
- On macOS and Linux:
python3 -m venv venv
- On Windows:
python -m venv venv
- Activate the virtual environment:
- On macOS and Linux:
source venv/bin/activate
- On Windows:
venv\Scripts\activate
- Install the dependencies:
- On macOS and Linux:
pip3 install -r requirements.txt
- On Windows:
pip install -r requirements.txt
- Navigate to the frontend directory:
cd ../frontend
- Install the dependencies:
npm install
- Build the frontend:
npm run build
- Navigate to the backend directory:
cd ../backend
- Run the Flask app:
flask run
- Open your browser and go to
http://localhost:5000/
to view the app.