This project combines a FastAPI backend with a React frontend, containerized using Docker.
To build and run the production version of the application:
-
Ensure you have Docker installed on your system.
-
Clone this repository and navigate to the project root directory.
-
Build the Docker image:
docker build -t fastapi-react-app .
-
Run the container:
docker run -p 8000:8000 fastapi-react-app
-
Access the application at
http://localhost:8000
backend/
: Contains the FastAPI applicationfrontend/
: Contains the React applicationDockerfile
: Defines the production Docker image
When running the application, you can access the API documentation at:
- Swagger UI:
http://localhost:8000/api/docs
- OpenAPI JSON:
http://localhost:8000/api/openapi.json