Skip to content

P2P communication between Web3 and Web2 AI agent with Python backend and Storacha/S3 (Web2) database

License

Notifications You must be signed in to change notification settings

seetadev/web3-ai-agent-py-nosql-db

Repository files navigation

AI Agent with Python backend & Storacha, Nosql database for Knowledge Base

Prerequisites

Before running this Web3 Flask application, ensure you have the following installed on your system:

  • Python (3.x recommended)
  • pip (Python package installer)
  • virtualenv (for creating isolated Python environments)
  • PHP (for import/export feature)
  • Composer (for import/export feature)

Setup Instructions

For Windows

  1. Install virtualenv (if not installed): Open Command Prompt and run:

    pip install virtualenv
  2. Install PHP and Composer:

  3. Clone the repository:

    git clone repository
    cd repository
  4. Install PHP dependencies for excelinterop: Navigate to the excelinterop directory and run:

    cd excelinterop
    composer install
    cd ..
  5. Create a new virtual environment:

    venv env
  6. Activate the virtual environment:

    .\env\Scripts\activate
  7. Install Python dependencies:

    pip install -r requirements.txt
  8. Configure environment variables: Create a .env file in the root directory of the project and add the required variables. You can use the provided .env.example file as a reference:

    cp .env.example .env
  9. Run the application:

    python main.py
  10. Access the application in your web browser at http://127.0.0.1:5000.

For Mac/Linux

  1. Install virtualenv (if not installed): Open Terminal and run:

    pip3 install virtualenv
  2. Install PHP and Composer:

  3. Clone the repository:

    git clone https://github.com/ManasMadan/c4gt-website.git
    cd c4gt-website
  4. Install PHP dependencies for excelinterop: Navigate to the excelinterop directory and run:

    cd excelinterop
    composer install
    cd ..
  5. Create a new virtual environment:

    python3 -m venv env
  6. Activate the virtual environment:

    source env/bin/activate
  7. Install Python dependencies:

    pip3 install -r requirements.txt
  8. Configure environment variables: Create a .env file in the root directory of the project and add the required variables. You can use the provided .env.example file as a reference:

    cp .env.example .env
  9. Run the application:

    python3 main.py
  10. Access the application in your web browser at http://127.0.0.1:5000.

Additional Notes

  • If you encounter any issues during installation or execution, please refer to the official documentation for Flask and ensure all prerequisites are correctly installed.

About

P2P communication between Web3 and Web2 AI agent with Python backend and Storacha/S3 (Web2) database

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published