This project is designed to interact with Google's Gemini model, featuring:
- Back-end: ASP.NET Web API
- Front-end: React (TypeScript) with Vite
First, clone the repository to your local machine:
git clone https://github.com/Egor332/AIAssistante
cd AIAssistante/BackEnd → ASP.NET Web API project
/FrontEnd → React + Vite front-end project
docker-compose.yml → For running the entire stack via Docker
Follow the steps below to run the entire application using Docker Compose.
Navigate to the /BackEnd folder and create a file named appsettings.json.
Use appsettings.Example.json as a reference for the required structure.
At minimum, make sure to fill in the following environment variables:
LLM:ApiKey→ Your API key for the Google Gemini modelLLM:curl→ Your curl command or endpoint for the model
Note: You do not have to set the
AllowedOriginsfield when running with Docker Compose — this value will be overridden automatically.
Open a terminal in the main project directory and run:
docker-compose up -dOnce the containers are running, open your browser and go to: http://localhost:5173
You can use the chat on the front-end to communicate with the assistant.
Note: Sometimes it takes a few seconds for the back-end to start, and it may not respond to a message within the first few seconds. You can try again a few seconds later.