Skip to content

IslombekOrifov/eshop-delivery-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

eshop-delivery-bot

Setup

Clone the repository:

$ git clone https://github.com/IslombekOrifov/eshop-delivery-bot.git
$ cd qr-code-task

Create a virtual environment for bot:

$ cd bot
$ python -m venv env
$ source env/bin/activate

Install the dependencies for bot:

(env)$ pip install -r requirements.txt

Create a virtual environment for admin:

$ python -m venv env
$ source env/bin/activate

Install the dependencies for admin:

(env)$ pip install -r requirements.txt

Upload your logo with name logo.jpg to site/media/logo/

In the root of the project create a .env file and set the environment variables

# Django Secret Key
SECRET_KEY = 

# Database configs
ADMINS =  # example 8596841,18496223,645441
SUPERUSERS =  # example 8596841,18496223,645441
BOT_TOKEN = # example 6363356505:AAFqSXkt2VJfd
ip = # example 192.168.0000.000 Your server ip 

DB_NAME =
DB_USER =
DB_PASS =
DB_HOST =

CLICK_SERVICE_ID = 
CLICK_MERCHANT_ID = 
CLICK_SECRET_KEY = 
CLICK_MERCHANT_USER_ID = 

Makemigrations:
```sh
(env)$ python manage.py makemigrations

Migrate database:

(env)$ python manage.py migrate

Create superuser:

(env)$ python manage.py createsuperuser

Run admin:

(env)$ python manage.py runserver

Run bot:

(env)$ python app.py

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages