This is @lhmd 's project with Vue
and koa.js
.
docker-compose up
cd client
npm install && npm run build
Then copy the directory dist
to the server folder, open app.js
, uncomment the following two lines:
const staticfile = require("koa-static");
app.use(staticfile("public"));
Then input the commands:
cd server
npm install && node app
You can visit the website in the http://localhost:6034
.
See Client Setup and Server Setup.
That is, replace the above npm run build
with npm run dev
and keep the two lines in the app.js
file commented out.
You can run the mqtt client outside of docker this way:
Change iot.properties
settings, use the uncomment part.
cd iotclient/target
java -jar iotclient-1.0.0.jar