https://github.com/codercake/fastapi-react
https://github.com/codercake/fastapi-react
Last synced: 10 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/codercake/fastapi-react
- Owner: codercake
- Created: 2024-11-25T17:28:02.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-11-26T07:04:33.000Z (about 1 year ago)
- Last Synced: 2025-01-25T18:11:22.410Z (about 1 year ago)
- Language: Python
- Size: 4.71 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Exploring React and FastAPI Connection
This is a simple project where I’m exploring how to connect a React frontend to a FastAPI backend. The backend is built with Python using FastAPI, and the frontend is created with React and JavaScript.
The backend runs on `http://localhost:8000`, exposing API endpoints for data. The frontend fetches data from these endpoints using `fetch` or `axios`.
Steps:
1. Start the FastAPI backend: `uvicorn main:app --reload`.
2. Start the React frontend: `npm start`.
3. Watch the React app interact with the FastAPI backend.
This setup is my way of learning the integration process.