Skip to content

Mashup which simplifies the interactions with Things in the Web of Things world

License

Notifications You must be signed in to change notification settings

Erro48/itd-debugtool

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🌐 Interactive TD DebugTool

Interactive Thing Description Debug Tool is a tool created to make it easier to debug and test Thing Descriptions in a web of things environment. It is able to display a Thing Description automatically, generating an easy-to-use user interface that allows the user to interact with one or more Thing Descriptions.

Installation

npm install

Usage

To execute the application, run the command

npm run start

To avoid problems with messages being blocked by CORS policies, you can use a proxy server as an intermediary for communications. To specify proxy server address, put the following line in a .env file.

REACT_APP_CORS_PROXY_SERVER=<proxy-server>:<proxy-port>/

Eventually is possible to directly execute the following command.

REACT_APP_CORS_PROXY_SERVER=<proxy-server>:<proxy-port>/ npm run start

Execution with Docker

To run the application using Docker, run the following command to build the image.

docker build -t itd-debugtool:latest .

Then is possible to run the container with the following command.

docker run --name itd-debugtool -p <localhost-port>:3000 itd-debugtool:latest

To specify the address of the proxy server, set the environment variable when you run the container.

docker run --name itd-debugtool -p <localhost-port>:3000 --env REACT_APP_CORS_PROXY_SERVER=<proxy-server>:<proxy-port> itd-debugtool:latest

About

Mashup which simplifies the interactions with Things in the Web of Things world

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published