From 6318af8dd862a23121de4397f61bdfe7541ae8d0 Mon Sep 17 00:00:00 2001 From: KatKatKateryna Date: Tue, 20 Aug 2024 10:28:19 +0100 Subject: [PATCH] upd readme --- README.md | 32 ++++++++++---------------------- 1 file changed, 10 insertions(+), 22 deletions(-) diff --git a/README.md b/README.md index 8fa3536..7fb8abb 100644 --- a/README.md +++ b/README.md @@ -11,37 +11,25 @@ Please read the docs at [https://docs.pygeoapi.io](https://docs.pygeoapi.io) for ## Speckle plugin -First use: +Launch: ```python -python -m venv pygeoapi -pygeoapi\Scripts\activate +// python -m venv pygeoapi_venv +cd pygeoapi_venv +Scripts\activate cd pygeoapi -git clone https://github.com/specklesystems/pygeoapi.git +// git clone https://github.com/specklesystems/pygeoapi cd pygeoapi git checkout dev -pip install --upgrade pip -pip install -r requirements.txt +git reset --hard dev +// pip install --upgrade pip +// pip install -r requirements.txt python setup.py install -set PYGEOAPI_CONFIG=example-config.yml -set PYGEOAPI_OPENAPI=example-config.yml +set PYGEOAPI_CONFIG=example-config.yml // export +set PYGEOAPI_OPENAPI=example-config.yml // export pygeoapi openapi generate $PYGEOAPI_CONFIG > $PYGEOAPI_OPENAPI pygeoapi serve -curl http://localhost:5000 ``` -Repeated use: -```python -cd C:\Users\yourusername -pygeoapi\Scripts\activate -cd pygeoapi -cd pygeoapi -git pull -git checkout dev -set PYGEOAPI_CONFIG=example-config.yml -set PYGEOAPI_OPENAPI=example-config.yml -pygeoapi openapi generate $PYGEOAPI_CONFIG > $PYGEOAPI_OPENAPI -pygeoapi serve -``` Example URL: http://localhost:5000/?limit=10000&speckleUrl=https://app.speckle.systems/projects/55a29f3e9d/models/2d497a381d