Skip to content

Commit

Permalink
docs(mm-bot): update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
JuArce committed Feb 6, 2024
1 parent 089f185 commit b012756
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
10 changes: 5 additions & 5 deletions mm-bot/Makefile
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# Database variables
container = postgres
container = mm-bot
user = user
password = 123123123
database = mm-bot
database = mm-bot-db


# Application Commands
Expand Down Expand Up @@ -30,11 +30,11 @@ stop_db:
docker stop $(container)

create_db:
@if [ "$(container)" = "postgres" ]; then echo "Using default container name: 'postgres'."; fi
@if [ "$(container)" = "mm-bot" ]; then echo "Using default container name: 'mm-bot'."; fi
@if [ "$(user)" = "user" ]; then echo "Using default user name: 'user'."; fi
@if [ "$(password)" = "123123123" ]; then echo "Using default password: '123123123'."; fi
@if [ "$(database)" = "mm-bot" ]; then echo "Using default database name: 'yas-api'."; fi
@if [ "$(database)" = "mm-bot-db" ]; then echo "Using default database name: 'mm-bot-db'."; fi

docker run --name $(container) -e POSTGRES_PASSWORD=$(password) -e POSTGRES_USER=$(user) -p 5432:5432 -d postgres
sleep 5 # Wait for the PostgreSQL container to start (you can adjust this as needed)
docker exec -it $(container) psql -U $(user) -c 'CREATE DATABASE "$(database)" WITH ENCODING "UTF-8";'
docker exec -it $(container) psql -U $(user) -c 'CREATE DATABASE "$(database)" WITH ENCODING "UTF-8";'
4 changes: 2 additions & 2 deletions mm-bot/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Market Maker Bot is a bot that provides liquidity to the Yet Another Bridge (YAB).

# Prerequisites
- Python v3.8 or higher
- Python v3.10 or higher
- pip
- Postgres (Native or Docker)

Expand All @@ -16,7 +16,7 @@ pip install -r requirements.txt
If you want to use a virtual environment, you can use the following command:

```bash
make create_venv
make create_python_venv
```
To run the virtual environment, you can use the following command:

Expand Down

0 comments on commit b012756

Please sign in to comment.