This project is the front-end of IoTDB-UI. IoTDB-UI is a management system that can deeply manage IoTDB. It provides precise management at the desktop software level. I hope it will be helpful for you when using IoTDB.
Node 14.0 or above
Npm 6.0 or above
Nginx
Install node_modules
:
npm install
This project provides some useful script to help you quick start and build with web project, code style check and test.
Scripts provided in package.json
. It's safe to modify or add additional script:
npm run dev
npm run build
- In the project root directory execute
npm install
to install - In the project root directory execute
npm run dev
to startup, 8000 port is used by default - In the project root directory execute
npm run build
to build, map the contents in/dist
to a port through nginx (For example 8040), and map server api to an address (For example http://localhost:8080/api/):
server {
listen 8040;
server_name localhost;
location / {
root iotdbui-front/dist;
index index.html;
}
location /api/ {
proxy_pass http://localhost:8080/api/;
}
}
- If you enable the websocket feature on nginx, you can get a better user experience. If you do not enable it, it will not affect the use at all;
- Now use your browser to open the port you previously set (for example http://localhost:8040/ ), start to enjoy iotdb!