Skip to content

Commit

Permalink
Updated To Auto Installers Mode ..
Browse files Browse the repository at this point in the history
  • Loading branch information
muhammadali175302 committed Jan 30, 2022
1 parent 180763f commit 4b3e955
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 17 deletions.
23 changes: 6 additions & 17 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,38 +8,27 @@ As Gateio seems to list many of these coins before Binance does, this exchange i
It comes with a live and test mode so naturally, use at your own risk.

# HOW TO RUN IT
## 1. Create venv (recommended to use python>=3.8, check with `python --version`)

python3 -m venv env

## 2 Activate venv
## Simply Run

Linux:
source env/bin/activate
bash run.sh

Windows:
env\Scripts\activate.bat

## 3. Install program requirements

python -m pip install -r requirements.txt

This contains the requirements for the program itself. You may now run the script using python main.py.
No additional steps needed for simply running the tool, you may stop here.
./run.bat

## 4. Install dev requirements
## Install dev requirements

python -m pip install -r dev_requirements.txt

This is necessary make verifying of the code easier and formats the code automatically to match the coding style.

## 5. Install pre-commit hooks
## Install pre-commit hooks

pre-commit install

This installs the pre-commit git hooks for the project and makes it possible to run the pre-commit script automatically when committing.

## 6. Run Tests and pre-commit scripts manually
## Run Tests and pre-commit scripts manually
### pre-commit checks
To manually run the pre-commit script:

Expand Down
4 changes: 4 additions & 0 deletions run.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
py -m venv env
call env\Scripts\activate.bat
py -m pip install -r requirements.txt
py main.py
6 changes: 6 additions & 0 deletions run.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
apt update
apt install python3 python3-pip
python3 -m venv env
source env/bin/activate
pip install -r requirements.txt
python3 main.py

0 comments on commit 4b3e955

Please sign in to comment.