Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/Erro48/itd-debugtool
- Owner: Erro48
- License: gpl-3.0
- Created: 2023-08-20T09:27:52.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2023-11-10T17:40:48.000Z (about 1 year ago)
- Last Synced: 2024-07-30T21:02:51.423Z (5 months ago)
- Topics: thing-description, web-of-things, wot
- Language: JavaScript
- Homepage:
- Size: 1.38 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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
```