Web of Things implementation on Node.js
TypeScript JavaScript
Pull request Compare This branch is 2 commits ahead, 10 commits behind thingweb:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.vscode
examples
packages
.editorconfig
.gitattributes
.gitignore
.travis.yml
LICENSE
README.md
lerna.json
package.json
tsconfig.json

README.md

node-wot

Web of Things implementation on Node.js

Build: Build Status

License

MIT License

How to get ready for coding

# Clone the repository
$ git clone https://github.com/thingweb/node-wot

# Go into the repository
$ cd node-wot

# install root dependencies (locally installs tools like typescript and lerna)
npm install 

# bootstrap the packages (installs dependencies and links the inter-dependencies)
# Note: This step is automatically done on building or testing
npm run bootstrap

# use tsc to transcompile TS code to JS in dist directory for each package
npm run build

# run test suites of all packets
npm run test 

# (OPTIONAL!) 
# make all packages availiable on your local machine (as symlinks)
# you can then use each paket in its local version via "npm link" instead of "npm install"
# see also https://docs.npmjs.com/cli/link
sudo npm run link

No time for explanations - I want to start from something running!

Run all the steps above and then run this:

cd examples/scripts
wot-servient

How to use the library

This library implements the Scripting API defined in the WoT Current Practices document.

You can also see examples/scripts to have a feeling of how to script a Thing.

Not everything has been succesfully implemented.