Node Js
- cd Frontend/gemini-chat-app
- npm install / npm i (to install dependencies)
- npm run dev
- Docker
- Python (>= 3.10)
- Run rabbitmq in docker:
docker run -d -it --rm --name rabbitmq -p 5672:5672 -p 15672:15672 rabbitmq:3.13-management
- Install all dependencies:
pip install -r requirements.txt
- Run
gemini_executor.py
that consumes values from queue and prompts Gemini:
python gemini_executor --gemini-api-key <YOUR-GEMINI-KEY>
- Run
send_prompt.py
that is for testing the executor, sends a prompt to queue:
python send_prompt.py <PROMPT>
At this point you should see the output of Gemini from gemini_executor.py
.
- MongoDB
- Node Js
- cd MS1
- Either run
mongod --config /opt/homebrew/etc/mongod.conf
to run the MongoDB server locally on your machine( Make sure you have MongoDB compass installed to view the database) or you can use MongoDB Atlas to create a cluster and connect to it. - In case you are using MongoDB Atlas, you need to add username and password of your cluster into .env file in the MS1 directory.
- npm install
- npm start