Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
e78447b
refactor(cli): drop vm2 and use NodeJS vm module
relu91 Jan 24, 2025
abb813c
refactor(cli/default-serivent): use async await in run method
relu91 Jan 24, 2025
ee16e04
refactor(cli): better code organization and minor improvements logging
relu91 Jan 29, 2025
e493e36
refactor(cli): organize logging configuration
relu91 Jan 29, 2025
6f5953c
refactor(cli/parsers/config-file-parser): better error messages
relu91 Jan 30, 2025
861bcad
refactor(cli): improve configuration building and keep it sync with j…
relu91 Mar 5, 2025
7bb51f3
fix(mqtt): allow optional uri in MQTT Server configuration
relu91 Mar 5, 2025
f49662f
feat(cli): simplify CLI script execution
relu91 Jun 27, 2025
7269236
feat(cli): unify configuration parameters
relu91 Oct 24, 2025
1f1d88e
chore: remove testing files
relu91 Nov 28, 2025
28c8a6f
test(cli): cover new functionalities with basic tests
relu91 Nov 28, 2025
93cd428
chore: fix critical audit warnings
relu91 Nov 28, 2025
f116cbc
chore: fix eslint warnings
relu91 Nov 28, 2025
5718765
style: run format
relu91 Nov 28, 2025
e5ddb9b
test(cli): use tmp library for script files
relu91 Dec 18, 2025
ca12fe4
refactor(cli): basic error messages improvments
relu91 Jan 7, 2026
61768ae
chore(cli): rename import-json.js to import-json-to-ts.js
relu91 Jan 7, 2026
eed1f94
feat(cli): remove now unsupported inspect options
relu91 Jan 7, 2026
876bede
feat(cli): remove compiler option
relu91 Jan 7, 2026
9a2f461
docs(cli/README): allign the help message with the latest changes
relu91 Jan 7, 2026
c1597d6
docs(cli/README): add missing closing parentesis
relu91 Jan 7, 2026
341cef1
chore: remove .env file
relu91 Jan 9, 2026
24dcdf7
chore(cli): update license date
relu91 Jan 9, 2026
d823470
refactor(cli): move loglevel to log.level
relu91 Jan 9, 2026
c5a7a51
test(cli): remove temporaney resource folder
relu91 Jan 9, 2026
39877a7
feat(cli): rename cli commad from wot-servient to node-wot
relu91 Jan 9, 2026
afc3ccd
docs(binding-mqtt): fix typo
relu91 Jan 12, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,4 @@ STOPSIGNAL SIGINT
ENTRYPOINT [ "node", "dist/cli.js" ]
CMD [ "-h" ]

## docker build -t wot-servient ./docker/Dockerfile
## docker build -t node-wot ./docker/Dockerfile
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -119,16 +119,16 @@ Go into the repository:
cd node-wot
```

Build the Docker image named `wot-servient` from the `Dockerfile`:
Build the Docker image named `node-wot` from the `Dockerfile`:

```
npm run build:docker
```

Run the wot-servient as a container:
Run the `node-wot` as a container:

```
docker run --rm wot-servient -h
docker run --rm node-wot -h
```

## Examples
Expand Down Expand Up @@ -231,12 +231,12 @@ Can't find your preferred MediaType? More codecs can be easily added by implemen
Run all the steps above including "Link Packages" and then run this:

```
wot-servient -h
node-wot -h
cd examples/scripts
wot-servient
node-wot
```

Without the "Link Packages" step, the `wot-servient` command is not available and `node` needs to be used (e.g., Windows CMD shell):
Without the "Link Packages" step, the `node-wot` command is not available and `node` needs to be used (e.g., Windows CMD shell):

```
# expose
Expand All @@ -256,9 +256,9 @@ First [build the docker image](#as-a-docker-image) and then run the counter exam

```
# expose
docker run -it --init -p 8080:8080/tcp -p 5683:5683/udp -v "$(pwd)"/examples:/srv/examples --rm wot-servient /srv/examples/scripts/counter.js
docker run -it --init -p 8080:8080/tcp -p 5683:5683/udp -v "$(pwd)"/examples:/srv/examples --rm node-wot /srv/examples/scripts/counter.js
# consume
docker run -it --init -v "$(pwd)"/examples:/srv/examples --rm --net=host wot-servient /srv/examples/scripts/counter-client.js --client-only
docker run -it --init -v "$(pwd)"/examples:/srv/examples --rm --net=host node-wot /srv/examples/scripts/counter-client.js --client-only
```

- The counter exposes the HTTP endpoint at 8080/tcp and the CoAP endpoint at 5683/udp and they are bound to the host machine (with `-p 8080:8080/tcp -p 5683:5683/udp`).
Expand Down
Loading