blockdiag API server and livepreview ui.
653
$ docker-compose build app
$ docker-compose up
/api/v1/<diagram type (actdiag or blockdiag ...)>POSTContent-Type: application/json;{
"source": "<diagram syntax>"
}
$ curl -XPOST \
-H 'Content-Type: application/json' \
-d '{ "source": "blockdiag {\n A -> B; \n B -> C; \n}" }' \
http://localhost:8000/api/v1/blockdiag
Please set BLOCKDIAG_API_SUBDIR environment variable.
BLOCKDIAG_API_SUBDIR=/hello python server.py
or
Edit docker-compose.yml
- environment:
- - BLOCKDIAG_API_SUBDIR=/
+ environment:
+ - BLOCKDIAG_API_SUBDIR=/hello
Access to http://<blockdiag-api URL>/hello
$ pip install -r requirements.txt
$ python server.py
$ cd ui-src
$ npm install
$ npm run start
Content type
Image
Digest
Size
183.3 MB
Last updated
almost 6 years ago
docker pull kaishuu0123/blockdiag-api