This repository contains a full-stack application with a FastAPI backend and a Streamlit frontend.
- RESTful API routes
- CORS (Cross-Origin Resource Sharing) support
- OAuth authentication
- ORM integration with a database
- User authentication (login to server)
- Demonstration of GET requests to the API backend
- Demonstration of POST requests to the API backend
- Python 3.9+
- Streamlit
- FastAPI
- Pytest
- Black
- Docker
docker compose up- 
Navigate to the apidirectory
- 
Install dependencies: pip install -r requirements.txt
- 
Start the FastAPI server: uvicorn server:app --reload
- Navigate to the appdirectory
- Install dependencies:
pip install -r requirements.txt
- Run the Streamlit app:
streamlit run streamlit_app.py
- API and Streamlit tests: Run make test
Once the backend server is running, you can access the API documentation at:
- Swagger UI: http://localhost:8000/docs
- ReDoc: http://localhost:8000/redoc