This is an implementation of the W3C WoT Thing Description Directory (TDD), a registry of Thing Descriptions.
Visit the following pages to get started:
Further documentation are available in the wiki.
The dependencies of this package are managed by Go Modules.
Clone this repo:
git clone https://github.com/linksmart/thing-directory.git
cd thing-directory
Compile from source:
go build
This will result in an executable named thing-directory
(linux/macOS) or thing-directory.exe
(windows).
Get the CLI arguments help (linux/macOS):
$ ./thing-directory -help
Usage of ./thing-directory:
-conf string
Configuration file path (default "conf/thing-directory.json")
-version
Print the API version
Run (linux/macOS):
$ ./thing-directory --conf=sample_conf/thing-directory.json
To build and run together:
go run . --conf=sample_conf/thing-directory.json
Test all packages (add -v
flag for verbose results):
go test ./...
Contributions are welcome.
Please fork, make your changes, and submit a pull request. For major changes, please open an issue first and discuss it with the other authors.