- Read the contribution guidelines
- Run
setup.shto install dependencies. - ???
- Profit!
python node_api.py [-p [Internal port used by the nodes] -b [Known bootstrap IP] [Known bootstrap port]]
Each node runs a HTTP API on port 9001. This API can be used to register/unregister services and get the IP of an abitary service.
- Start the API using:
python node_api.py - Register your service by POSTing to
http://127.0.0.1:9001/registerwith the following payload:{"service_name": "<YOUR SERVICE NAME HERE>"}. - Obtain an IP to the service you want to connect to by submitting a GET
request to
http:/127.0.0.1:9001/<service_name>. This will return a single string containing the IP to an instance of the service.