QangBot is a comprehensive web application designed to make creating bots on various platforms effortless.
First, clone the repository to your local machine.
Ensure that you have a Redis server running on your machine.
-
Navigate to the frontend directory:
cd qangbot_front
-
Install the required dependencies:
npm install
-
Create two files named
.env
and.env.local
with the following variables:NEXT_PUBLIC_BACKEND_URL="http://127.0.0.1:8000" BACKEND_LOCAL_URL="http://127.0.0.1:8000"
-
Start the development server:
npm run dev
-
Navigate to the backend directory:
cd qangbot_back
-
Create a virtual environment:
python -m venv venv
-
Activate the virtual environment (OS-specific command):
- On Windows:
.\venv\Scripts\activate
- On macOS and Linux:
source venv/bin/activate
- On Windows:
-
Install the required dependencies:
pip install -r requirements.txt
-
Create a
.env
file with the following variables:REDIS_URL= INTERNAL_HOST="127.0.0.1:8000" SECRET_KEY= EMAIL_HOST_PASSWORD= EMAIL_HOST_USER= EMAIL_HOST='smtp.gmail.com' EMAIL_PORT=587 FRONT_HOST_HTTPS="http://127.0.0.1:3000" DOMAIN="127.0.0.1" DEFAULT_PROXY_USERNAME="username" DEFAULT_PROXY_PASSWORD="password" DEFAULT_PROXY_URL="155.***.***.41:38100" NONE_VIP_CREATION_LIMIT=2 NONE_VIP_GRIDS_CREATION_LIMIT=100 DEBUG=1
-
Apply migrations:
python manage.py makemigrations python manage.py migrate
-
Create a superuser:
python manage.py createsuperuser
-
Start the backend server:
python manage.py runserver
-
Ensure the virtual environment is active:
- On Windows:
.\venv\Scripts\activate
- On macOS and Linux:
source venv/bin/activate
- On Windows:
-
Navigate to the backend directory and run the bot grid manager:
cd qangbot_back python manage.py gridbots
Open your browser and navigate to http://127.0.0.1:3000
. Log in with your superuser credentials to create your bots, add grids, and more. If you do not need to change or monitor anything, you can simply run:
python manage.py gridbots