A simple example of a FastAPI backend with a React frontend that can handle large data.
-
Create a virtual environment
python3 -m venv .venv
-
Activate the virtual environment
# On Unix or MacOS source .venv/bin/activate # On Windows .venv\Scripts\activate
-
Install the development dependencies
pip install -e 'src[dev]'
-
Run the FastAPI backend
uvicorn src.large_data_api.main:create_app --factory --reload
-
Install the frontend dependencies
cd frontend yarn install
-
Run the React frontend
yarn start