This project is a FastAPI application that provides endpoints for managing chat sessions and performing health checks.
fastapi-project
├── src
│ └── main.py # Contains the FastAPI application code
│ └── firebase.py # Contains the Firebase & Firestore code
│ └── graphs.py # Contains the graph manager code
│ └── cr_rag_nodes.py # Contains the nodes for the cr_rag graph
├── Dockerfile # Instructions for building the Docker image
├── requirements.txt # Python dependencies required for the project
└── README.md # Documentation for the project
Make sure to have Python 3.10 or higher installed. The project dependencies are listed in requirements.txt.
-
Clone the repository:
git clone git@github.com:LeeSomm/ETLode_API.git cd etlode_api -
Install the dependencies:
pip install -r requirements.txt
To run the FastAPI application locally, execute the following command:
uvicorn src.main:app --host 0.0.0.0 --port 8000 --reload
To build and run the application using Docker, follow these steps:
-
Build the Docker image:
docker build -t etlode_api . -
Run the Docker container:
docker run -d -p 8000:8000 etlode_api
- Health Check:
GET /health- Returns the health status of the application.
This project is licensed under the MIT License.