commit | 4e96710a367ea9850f292e1c7a8b0096c5bce0f0 | [log] [tgz] |
---|---|---|
author | Glenn Chen <glenn.jun.chen@gmail.com> | Sat Oct 28 16:36:03 2023 -0700 |
committer | Glenn Chen <glenn.jun.chen@gmail.com> | Sat Oct 28 16:36:03 2023 -0700 |
tree | bc3e162960aa34ba4401aa9af1f4b6dab10d58ea | |
parent | 88b95a495520d98d9c0ba09681f925264f62b10b [diff] |
Update HTTP endpoints README
$ python3 --version
If your Python version number is too low you may encounter type hinting issues when attempting to run the code. You can use a Python virtual environment, as shown below.
$ sh INSTALL.sh
$ python3.10 -m venv venv
$ source venv/bin/activate
$ pip install -r requirements.txt
The correct Python configuration is needed for transaction validation.
If your virtual environment is not already active:
$ source venv/bin/activate
Run the script to start 4 local nodes
$ sh service/tools/start_kv_service_sdk.sh
$ bazel build service/http_server/crow_service_main
$ bazel-bin/service/http_server/crow_service_main service/tools/config/interface/service.config service/http_server/server_config.config
For a list of endpoints visit here
$ bazel-bin/service/kv_service/kv_service_tools service/tools/config/interface/service.config set test 1234
Examples of using the driver can be seen in test_driver
Replace the db_root_url with the address of the ResilientDB HTTP endpoints e.g. 127.0.0.1:18000