Skip to content

Deployment

Bhautik Bavadiya edited this page Apr 14, 2024 · 1 revision

Android/Termux

  1. Install Termux App: Click link to download

  2. Install NodeJS, nano and Git:

    pkg install git nodejs nano -y
  3. Clone the repository:

    git clone https://github.com/yesbhautik/Whatsapp-Ai-BOT
  4. Go to the project directory:

    cd Whatsapp-Ai-BOT
  5. Install node_modules manually by downloading here and extracting to the project directory.

  6. Configure OpenAI API

    cp example.key.json key.json
    nano key.json

    Replace "OPENAI_API_KEY" with your actual OpenAI API key.

  7. Run the project:

    node index.js
    

Linux

  1. Install NodeJS, nano and Git Bash.

    sudo apt -y remove nodejs
    curl -fsSl https://deb.nodesource.com/setup_lts.x | sudo bash - && sudo apt -y install nodejs
    apt install git nano -y
  2. Clone the repository:

    git clone https://github.com/yesbhautik/Whatsapp-Ai-BOT
  3. Go to the project directory:

    cd Whatsapp-Ai-BOT
  4. Clean NPM Cache:

    npm cache clean --force
  5. Install dependencies:

    npm i
  6. Configure OpenAI API

    cp example.key.json key.json
    nano key.json

    Replace "OPENAI_API_KEY" with your actual OpenAI API key.

  7. Run the project:

    npm start

MacOS

  1. Install NodeJS, nano and Git Bash.

    sudo apt -y remove nodejs
    curl -fsSl https://deb.nodesource.com/setup_lts.x | sudo bash - && sudo apt -y install nodejs
    apt install git nano -y
  2. Clone the repository:

    git clone https://github.com/yesbhautik/Whatsapp-Ai-BOT
  3. Go to the project directory:

    cd Whatsapp-Ai-BOT
  4. Clean NPM Cache:

    npm cache clean --force
  5. Install dependencies:

    npm i
  6. Configure OpenAI API

    cp example.key.json key.json
    nano key.json

    Replace "OPENAI_API_KEY" with your actual OpenAI API key.

  7. Run the project:

    npm start

Windows

  1. Install NodeJS and Git Bash.


    npm install -g npm
  2. Clone the repository:

    git clone https://github.com/yesbhautik/Whatsapp-Ai-BOT
  3. Go to the project directory:

    cd Whatsapp-Ai-BOT
  4. Clean NPM Cache:

    npm cache clean --force
  5. Install dependencies:

    npm i
  6. Configure OpenAI API

    cp example.key.json key.json
    notepad key.json

    Replace "OPENAI_API_KEY" with your actual OpenAI API key.

  7. Run the project:

    npm start
Clone this wiki locally