A full stack web application built with FastAPI (backend) and React (frontend).
- Backend: FastAPI, Python, SQLAlchemy, Pydantic
- Frontend: React.js
- Database: PostgreSQL
- Others: Uvicorn, psycopg2
fastapi-tutorial/
|-- frontend/
| |-- src/
| |-- public/
|-- main.py
|-- models.py
|-- database.py
|-- database_models.py
|-- requirements.txt
cd "fast api tutorial"
pip install fastapi uvicorn sqlalchemy psycopg2-binary pydantic
uvicorn main:app --reloadcd frontend
npm install
npm start| Method | Endpoint | Description |
|---|---|---|
| GET | / | Welcome message |
| GET | /products | Get all products |
| GET | /product/{id} | Get product by ID |
| PUT | /product/{id} | Update a product |
| DELETE | /product/{id} | Delete a product |
Divyansh Saxena