English | 中文
This is a project of B/S-software-design course of ZJU.
Framework:
- Backend: Springboot 3
- Frontend: vue 3
- Database: Mysql 8.2.0
- Cache: Redis 3.2.100
- Mqtt Server: emqx 5.3.2
-
git clone this repository.
-
start
mysql
service. init table using file.\iot-database\CreateTable.sql
. -
unzip the
emqx
andredis
zip file iniot-tools
. -
enter
emqx
folder, run in terminal:.\bin\emqx start
-
enter
redis
folder, runredis-server.exe
. -
enter
iotclient
folder, changeserver
iniot.properties
if necessary, then run:java -jar iotclient.jar
-
open
iot-backend
directory in IDEA, install dependencies inpoe.xml
, change ports and user password insrc\main\resources\application.yml
if necessary. Then runIotBackendApplication.java
. -
open
iot-frontend\vue-project
, run in terminal:npm run dev
-
open browser, enter the following address:
localhost:5173
-
git clone this repository.
-
start
mysql
service. -
unzip the
emqx
nginx
andredis
zip file iniot-tools
. -
enter
emqx
folder, run in terminal:.\bin\emqx start
-
enter
redis
folder, runredis-server.exe
. -
enter
iotclient
folder, changeserver
iniot.properties
if necessary, then run:java -jar iotclient.jar
-
start backend:
java -jar .\docker\backend\iot-backend-0.0.1-SNAPSHOT.jar
-
run command:
cp .\docker\frontend\dist\* .\iot-tools\nginx-1.24.0\html\ start .\iot-tools\nginx-1.24.0\nginx.exe
-
Open browser, enter the following address:
localhost:80
- Download docker folder.
- See docker employment instructions for more help.
As told in installation part.