Skip to content

Latest commit

 

History

History
44 lines (33 loc) · 827 Bytes

Linux.md

File metadata and controls

44 lines (33 loc) · 827 Bytes

Deploy on 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