# 🚀 Running Code using python/conda env

If you want to run the code without Docker locally, follow these steps:

  1. 🛠️ Run Redis locally (You can ask ChatGPT how to run Redis. Make sure to run it on port 6379). The current code uses Redis for state management (such as Conversation history etc.).

Alternatively, use the below command from knotie-ai root folder (make sure you have docker and docker-compose installed and running)

docker compose -f docker-compose-redis-only.yaml up -d
  1. 🐍 Install Python 3.11 and above.

  2. 🐍 Install VirtualEnv or Anaconda.

  3. 🐍 Create a Python environment:

    conda create -n aisalesagent python=3.11
  4. 🐍 Activate the environment:

    conda activate aisalesagent
  5. 📥 Download the zip or clone the repo:

    git clone https://github.com/avijeett007/Knotie-AI.git
    cd knotie-ai
  6. 📂 Go inside the folder and install all the requirements:

    pip install -r requirements.txt
  7. 📝 Copy .env_sample to .env:

    cp .env_sample .env
  8. 📝 Open .env in a text editor and update all the config properties as required.

  9. 🚀 Run the application:

    python app.py
    
    OR
    
    FLASK_APP=app.py FLASK_ENV=development flask run --host=0.0.0.0 --port=5000