Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/Erro48/itd-debugtool

Mashup which simplifies the interactions with Things in the Web of Things world
https://github.com/Erro48/itd-debugtool

thing-description web-of-things wot

Last synced: 2 months ago
JSON representation

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

Awesome Lists containing this project

README

        

# 🌐 Interactive TD DebugTool

![](https://img.shields.io/badge/React-20232A?style=for-the-badge&logo=react&logoColor=61DAFB)
![](https://img.shields.io/badge/Bootstrap-563D7C?style=for-the-badge&logo=bootstrap&logoColor=white)

_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

```sh
npm install
```

## Usage

To execute the application, run the command

```sh
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.

```js
REACT_APP_CORS_PROXY_SERVER=:/
```

Eventually is possible to directly execute the following command.

```sh
REACT_APP_CORS_PROXY_SERVER=:/ npm run start
```

### Execution with Docker

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

```sh
docker build -t itd-debugtool:latest .
```

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

```sh
docker run --name itd-debugtool -p :3000 itd-debugtool:latest
```

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

```sh
docker run --name itd-debugtool -p :3000 --env REACT_APP_CORS_PROXY_SERVER=: itd-debugtool:latest
```