Skip to content

Commit

Permalink
More cleanups
Browse files Browse the repository at this point in the history
  • Loading branch information
zacharyselk committed Aug 19, 2023
1 parent b20e09e commit cda1bfe
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 13 deletions.
7 changes: 0 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ This is a collection of tools created to help jumpstart users on working with BC
### Requirements

- [Docker](https://docs.docker.com/get-docker/)
- [Protoc](https://grpc.io/docs/protoc-installation/)
- [Python](https://www.python.org/downloads/) 3.9 or above
- [virtualenv](https://docs.python.org/3/library/venv.html)

Expand Down Expand Up @@ -41,12 +40,6 @@ pip install -r requirements.txt
pip install -r requirements.txt
```

Build the Protobuf code:
#### MacOs and Linux
```sh
./build.sh
```

Start the docker server:
```sh
docker compose up -d
Expand Down
2 changes: 0 additions & 2 deletions client.env

This file was deleted.

3 changes: 0 additions & 3 deletions notes_for_esp32.txt

This file was deleted.

1 change: 0 additions & 1 deletion server.env

This file was deleted.

26 changes: 26 additions & 0 deletions setup.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
#!/usr/bin/env bash

SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
PROJECT_ROOT=${SCRIPT_DIR}

VENV_NAME="${1:-.venv}"
VENV_PATH=${PROJECT_ROOT}/${VENV_NAME}

function setup_venv() {
echo ${VENV_PATH}
if [ ! -d "./${VENV_PATH}" ]
then
python -m venv ${VENV_NAME}
fi

source ${VENV_PATH}/bin/activate
}

function install_dependancies() {
pip install -r ${PROJECT_ROOT}/requirements.txt
pre-commit install
}


setup_venv
install_dependancies

0 comments on commit cda1bfe

Please sign in to comment.