A full-stack application with React frontend and FastAPI backend.
βββ frontend/ # React frontend application
β βββ src/ # React source code
β βββ public/ # Static assets
β βββ package.json # Frontend dependencies
βββ backend/ # FastAPI backend application
β βββ main.py # FastAPI application
β βββ requirements.txt # Backend dependencies
βββ README.md # This file
- Navigate to the frontend directory:
cd frontend- Install dependencies:
npm install- Start the development server:
npm startThe frontend will be available at http://localhost:3000
- Navigate to the backend directory:
cd backend- Install python3-venv if not already installed (Ubuntu/Debian):
sudo apt install python3.10-venv- Create and activate virtual environment:
python3 -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate- Install dependencies:
pip install -r requirements.txt- Start the development server:
python main.pyThe backend will be available at http://localhost:8000
- Frontend runs on port 3000
- Backend runs on port 8000
- CORS is configured to allow frontend-backend communication